code: def to_dict(self):
          
          d = {}
          for k, v in self.__dict__["data"].iteritems():
              if isinstance(v, RecursiveAttribute):
                  d[k] = v.to_dict()
              else:
                  d[k] = v
          return d
docs: Get an equivalent dict representation.