Postgresql Create Function With Parameters In Python Function