class Example(object):
    def foo(self):
        print()
    def bar(self):
        print()
    def __getattr__(self, name):
        def method(*args):
            print( + name)
            if args:
                print( + str(args))
        return method

example = Example()

example.foo()        
example.bar()        
example.grill()      
example.ding()