r-py-conversion function

Convert between Python and R objects