Fix PEP8 errors.  Remove unused imports.