Neat! My first thought was to wonder if it could be done with multiple inheritance between defaultdict and OrderedDict, but that seems like that could be a big nightmare, so your method is probably cleaner. :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.