I just learned how to use multilevel defaultdict from here. Same subject has been discussed here. Unfortunately my project uses JSON to save the data, and when I load the da