Extract MP class for multiprocessing