code: def get_attrdict(self) -> OrderedNamespace:
          
          # noinspection PyUnresolvedReferences
          columns = self.__table__.columns.keys()
          values = (getattr(self, x) for x in columns)
          zipped = zip(columns, values)
          return OrderedNamespace(zipped)
docs: Returns what looks like a plain object with the values of the
          SQLAlchemy ORM object.