major pep8 fixes in bigger scripts