Separate gradient file test and have Travis run it only on python 2.7.