def __init__(self, func, args, kwargs):
        "Initializes instance from arguments and prepares to run."
        self.__func = func
        self.__args = args
        self.__kwargs = kwargs
        self.__mutex = _thread.allocate_lock()
        self.__mutex.acquire()
Initializes instance from arguments and prepares to run.
recipes/Python/578151_affinitypy/recipe-578151.py