code: def iteritems(cls):
          
          for key in dir(cls):
              val = getattr(cls, key)
              if isinstance(cls, val):
                  yield (key, val)
docs: Inspects attributes of the class for instances of the class
              and returns as key,value pairs mirroring dict#iteritems