Changes to .travis.yml

This cherry-picks @sk-'s `fixcoverage.py` script from #1219 (with a Python 3 compatibility issue fixed) and reorders Travis jobs to reduce the test turn-around time (now determined by only the Python 3.4 run with all dependencies built from source).