Ran python files through flake8 and updated for python style guidelines