Preference window fix

I fixed the issues below and also improved the import help after solving my dependency issue.
 - Preferences could not be saved
 - Timer was not updated because of TypeError
 - Minor issues with pep8, flake8 and import help being printed twice