class MyClass : name = "MyClass"me = MyClass()me.color = "red"print dir(me)d = dir(me)for a in d : print a