py_to_r_wrapper function

R wrapper for Python objects