fixed travis and pep8 errors