Remove unused imports.
Eliminate almost all flake8 messages.