def db_log(*args, **kwargs):
    print(args, kwargs)


class BaseWrapper(object):

    def __init__(self, instance):
        self._instance = instance

def __getattr__(self, attr):
    pass
How to wrap python instance methods at runtime