Fix flake8 and travis config.