code: def to_dict(self, omit=()):
          
          result = dict(self)
          for key in omit:
              if key in result:
                  del result[key]
          return result
docs: Return a (shallow) copy of self cast to a dictionary,
          optionally omitting some key/value pairs.