pep8 pass over the codebase

There's a fair amount of pep8 violations that our editors are complaining about and are highlighting red.