fix pylint and pep8 formating errors