Can you add some info here on what the return type is? Looking at its usage above it looks like a dict of dicts, and with that many levels it's confusing to try to infer what the contents are.