Adds param_map argument to PythonFunction