Postgres Execute Function Python Meaning