Postgres Stored Procedure Declare Variable Python Definition