Postgresql Create Function With Parameters In Python Functions