Updated code to meet PEP8 style guidelines.

Checked each .py file against the pep8 style checker tool and made modifications where necessary to match the PEP8 style and pass the checker tool's tests.