Postgresql Assign Query Result Sets In Python W3schools