AutoPep8 whitespace fixes:
E101 - Reindent all lines.
E112 - Fix under-indented comments.
E113 - Fix over-indented comments.
E115 - Fix under-indented comments.
E116 - Fix over-indented comments.
E121 - Fix a badly indented line.
E122 - Fix a badly indented line.
E123 - Fix a badly indented line.
E124 - Fix a badly indented line.
E125 - Fix indentation undistinguish from the next logical line.
E126 - Fix a badly indented line.
E127 - Fix a badly indented line.
E128 - Fix a badly indented line.
E129 - Fix a badly indented line.
E201 - Remove extraneous whitespace.
E202 - Remove extraneous whitespace.
E203 - Remove extraneous whitespace.
E211 - Remove extraneous whitespace.
E221 - Fix extraneous whitespace around keywords.
E222 - Fix extraneous whitespace around keywords.
E223 - Fix extraneous whitespace around keywords.
E224 - Remove extraneous whitespace around operator.
E225 - Fix missing whitespace around operator.
E226 - Fix missing whitespace around operator.
E227 - Fix missing whitespace around operator.
E228 - Fix missing whitespace around operator.
E231 - Add missing whitespace.
E241 - Fix extraneous whitespace around keywords.
E242 - Remove extraneous whitespace around operator.
E251 - Remove whitespace around parameter '=' sign.
E261 - Fix spacing after comment hash.
E262 - Fix spacing after comment hash.
E265 - Format block comments.
E271 - Fix extraneous whitespace around keywords.
E272 - Fix extraneous whitespace around keywords.
E273 - Fix extraneous whitespace around keywords.
E274 - Fix extraneous whitespace around keywords.
E301 - Add missing blank line.
E302 - Add missing 2 blank lines.
E303 - Remove extra blank lines.
E304 - Remove blank line following function decorator.
E309 - Add missing blank line.
E401 - Put imports on separate lines.
E501 - Try to make lines fit within --max-line-length characters.
E502 - Remove extraneous escape of newline.
E701 - Put colon-separated compound statement on separate lines.
E702 - Put semicolon-separated compound statement on separate lines.
E703 - Put semicolon-separated compound statement on separate lines.
E711 - Fix comparison with None.
E712 - Fix comparison with boolean.
E713 - Fix non-membership check.
E721 - Fix various deprecated code (via lib2to3).
W291 - Remove trailing whitespace.
W601 - Fix various deprecated code (via lib2to3).
W602 - Fix deprecated form of raising exception.
W603 - Fix various deprecated code (via lib2to3).
W604 - Fix various deprecated code (via lib2to3).
W690 - Fix various deprecated code (via lib2to3).