Postgresql Function Variable Declaration Rules In Python