Fixed pep8 issues

Went through and made the suggested changes to make the script more
visually appealing, and coherent to python standards.