PEP8 fixes

I went through the code with pydev's pep8.py and fixed a lot of errors.