class TestClass(object):

    def __init__(self):
        pass

def method1(self, arg1):
    print('method 1 %s' % arg1)

def method2(self, *args, **kw):
    pass
How to dynamically create module level functions from methods in a class