fix pep8 and pylint warns