class Foo:
attr = 'bar'
def spam(self):
pass
def __init__(self):
self.a = 'eggs'
print(Foo.__dict__)
print(list(filter(lambda f: not f.startswith('__') and not callable(getattr(Foo, f)), Foo.__dict__)))
Y2xhc3MgRm9vOgogICAgYXR0ciA9ICdiYXInCgogICAgZGVmIHNwYW0oc2VsZik6CiAgICAgICAgcGFzcwoKICAgIGRlZiBfX2luaXRfXyhzZWxmKToKICAgICAgICBzZWxmLmEgPSAnZWdncycKCnByaW50KEZvby5fX2RpY3RfXykKcHJpbnQobGlzdChmaWx0ZXIobGFtYmRhIGY6IG5vdCBmLnN0YXJ0c3dpdGgoJ19fJykgYW5kIG5vdCBjYWxsYWJsZShnZXRhdHRyKEZvbywgZikpLCBGb28uX19kaWN0X18pKSkK