Postgresql Function Variable Types In Python