Postgres Create Or Replace Function Syntax In Python