Great question and one that can cause some challenges if the file/export is too big. I would recommend you get the chunk data first then use Python to iterate on each chunk. That should work. Here's a sample Python script to help you.
from getAuthentication import userBA
from getGUIDs import wGuid, mGuid, fileID, fileName