fix flake8 and travis