PEP 8 fixes

Just PEP 8 fixes, no logic changes. I've added a .pep8 file with maximum line length of 129, it can be altered as necessary.