fix flake8 errors on travis and add coverage to travis config