Return a recursive dict representation of self

def asdict(self):
        """Return a recursive dict representation of self
        """
        d = dict(self._odict)

        for k,v in d.items():
            if isinstance(v, Struct):
                d[k] = v.asdict()

        return d