This might not be exactly what you need, but should get you there if I understood the problem:
180922_RotatingDataTree_GHPython_00.gh (6.5 KB)
It basically records the input Data
parameter into the first branch of a DataTree, while also rotating the branches each time it records.