PEP8 + linting

Unused imports, mixed tabs and spaces, (most of the) long lines