class Foo(object):

    def some_method(self):
        print('I am decorated')

def another_method(self):
    print('I am NOT decorated')
Writing a class decorator that applies a decorator to all methods