def dict(self):
        'od.dict() -> a dict copy of od'
        d = {}
        for item in self.iteritems(): d[item[KEY]] = item[VALUE]
        return d
od.dict() -> a dict copy of od
recipes/Python/577826_Yet_Another_Ordered_Dictionary/recipe-577826.py