PEP8 + linting

Unused imports, mixed tabs and spaces, (most of the) long lines
ooh, 3 space indent. glad you spotted that.