change order of execution for travis.py script