[minor] Only run tests on Travis with python 2.7