did multiprocessing version of num_factors.py