py_func function

Wrap an R function in a Python function with the same signature.