Postgres Run Query From Command In Python