How To Call Postgres Function In Python