code: def class_space(classlevel=3):
      "returns the calling class' name and dictionary"
      frame = sys._getframe(classlevel)
      classname = frame.f_code.co_name
      classdict = frame.f_locals
      return classname, classdicf class_space(classlevel=3):
      "returns the calling class' name and dictionary"
      frame = sys._getframe(classlevel)
      classname = frame.f_code.co_name
      classdict = frame.f_locals
      return classname, classdict
docs: returns the calling class' name and dictionary