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