fixes pep8 and pylint errors: