Change code to meet PEP8 standards

The code was not elegant. Made changes to it using Pylint and Pyflake.
Reformatted multiprocessing code