fixed lint and pep8 errors