def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def activate(self, func):
        evaldict = {'ldap3mock': self, 'func': func}
        return get_wrapped(func, _wrapper_template, evaldict)