flake8 and travis related fixes