do not assume there is an answer in knowledge module

issues: #93
fix pep8 and pyflakes violations