code: def top_class(self):
          
          curr = self
          parent = self.parent
          while isinstance(parent, class_t):
              curr = parent
              parent = parent.parent
          return curr
docs: reference to a parent class, which contains this class and defined
          within a namespace
  
          if this class is defined under a namespace, self will be returned