Postgresql Create Function Example In Python