Remove whitespace.
Simplify the QT widgets import.
Remove an unused import.
Remove a variable that isn't used.
pep8 fixes.