Calling oython function and datastructures from R