Make multiprocessing work and make pep8 compliant.