Postgresql Create Replace Function In Python String