code: def export_dict(self):
          "Convert this into an ordinary dict (of dicts)."
          return {k: v.export_dict() if isinstance(v, self.__class__) else v
                  for k, v in self.items()f export_dict(self):
          "Convert this into an ordinary dict (of dicts)."
          return {k: v.export_dict() if isinstance(v, self.__class__) else v
                  for k, v in self.items()}
docs: Convert this into an ordinary dict (of dicts).