bah, basically just looks like ``parsed`` should be a ``defaultdict`` and it'll simplify a bunch of things