pep8 changes

$ pep8 --statistics -qq
101     E111 indentation is not a multiple of four
2       E113 unexpected indentation
105     E122 continuation line missing indentation or outdented
164     E123 closing bracket does not match indentation of opening bracket's line
6       E124 closing bracket does not match visual indentation
1       E125 continuation line with same indent as next logical line
55      E126 continuation line over-indented for hanging indent
56      E127 continuation line over-indented for visual indent
3       E129 visually indented line with same indent as next logical line
4       E131 continuation line unaligned for hanging indent
290     E201 whitespace after '('
462     E202 whitespace before ')'
853     E203 whitespace before ':'
4       E211 whitespace before '('
81      E221 multiple spaces before operator
3       E222 multiple spaces after operator
17      E225 missing whitespace around operator
249     E226 missing whitespace around arithmetic operator
6       E228 missing whitespace around modulo operator
66      E231 missing whitespace after ','
180     E241 multiple spaces after ','
76      E251 unexpected spaces around keyword / parameter equals
833     E261 at least two spaces before inline comment
9       E262 inline comment should start with '# '
205     E265 block comment should start with '# '
3       E271 multiple spaces after keyword
6       E272 multiple spaces before keyword
71      E301 expected 1 blank line, found 0
597     E302 expected 2 blank lines, found 1
117     E303 too many blank lines (3)
1317    E501 line too long (107 > 100 characters)
1       E502 the backslash is redundant between brackets
3       E701 multiple statements on one line (colon)
1       E702 multiple statements on one line (semicolon)
2       E703 statement ends with a semicolon
1       E711 comparison to None should be 'if cond is None:'
30      E713 test for membership should be 'not in'
8       W291 trailing whitespace
17      W292 no newline at end of file
19      W293 blank line contains whitespace
20      W391 blank line at end of file