some pep8 and pylint cleaning