8.0: ported 7.0  changes

* travis config update
* flake8 fixes