How to convert a grasshopper DataTree to a 3d nested python list?

Take a look at this thread.