How to import trakem2 image and annotations with Python

I’m trying to import a certain volume (say, 10 x10 x10) centered at some (x,y,z) from a registered stack of tiff.rag files. I’d like my output to be in something like a numpy array. Is there existing code to do something like this?

Thanks in advance.