Fix flake8 errors and wrong path in travis config.