pylint and autopep8 corrections