Fix travis build errors due to changes in travis python setup.

See https://github.com/travis-ci/travis-ci/issues/2219#issuecomment-41804942 for more details