PEP 8 and pylint fixes

Just some PEP 8 (line length, whitespace, etc.) and pylint (unused import) fixes.