Adjusted the remaining .py files according to pep8