Postgresql Create Function With Parameters Python Ideal