Pep8 errors and unused imports