Fix type check that pep8 complains about.
Pyflakes cleanups.
Update import_test.

(although I think autoreload is the last module left with no real test
coverage)
Re-apply autopep8.