Find Postgres Function Using Python