gui: fix issues reported by pylint.

W: 21, 8: Unused variable 'line_pad' (unused-variable)
W:  1, 0: Unused import sys (unused-import)
main: fix issues reported by pylint.

W:  2, 0: Unused import QtCore (unused-import)
W:  2, 0: Unused import QtGui (unused-import)