fixes for pylint and pep8