Add functions to deal from python data structures to R dataframes