Postgres Use Variable In String In Python