Postgresql Create Function With Parameters Python