Postgres Create Trigger Execute Function In Python