Python Using Data Structures In R