Postgres Stored Procedure Declare Variable In Python