Postgres Function Return Void In Python For All Selected Lines