travis: Split build logic into a separate script
travis: Correct python logic
travis: Move flake8 runs to travis-build
travis: Split python build into two steps
travis: Order python first
Merge pull request #2286 from sbesson/rebased/dev_5_0/travis-script

travis: Split build logic into a separate script (rebased onto dev_5_0)