Fix pep8 and pylint violations