Loop over subdirectories of a rootfile in pyRoot

Hello,
Can you check if the final solution discussed here works for you?

Cheers,
Enric