def __init__(self, func, args, kwargs):
        """Generic python worker for running python code on threads."""
        super(PythonWorker, self).__init__()
        self.func = func
        self.args = args
        self.kwargs = kwargs
        self._is_finished = False
        self._started = False
def __init__ ( self , func , args , kwargs ) : super ( PythonWorker , self ) . __init__ ( ) self . func = func self . args = args self . kwargs = kwargs self . _is_finished = False self . _started = False
Generic python worker for running python code on threads.