Postgresql Create Function In Python Syntax