Postgresql Get Function Definition Python