Fix pylint and pep8