pep8 pylint and pyflakes related fixes