some pylint and pep8 fixes

* now all files in keywordsearch package and kws_tests get >=9 in pylint
* most TODOs removed
* still some code may be cleaned up further
Merge pull request #4097 from dmwm/kws_cleanup_pylint

pylint and pep8 fixes to KWS