Update with PEP008 syntax and multiprocessing