I really like this solution for dealing with nested defaultdicts. It's a bit of a hack, but does the job neatly when pdbing:
import json
data_as_dict = json.loads(json.dumps(data_as_defaultdict))
print(data_as_dict)
From: https://stackoverflow.com/a/32303615/4526633