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__)))
