TST: Fix TravisCI build for python2.7