Used pyflakes to clean up a bunch of unused imports.