.travis.yml: drop unsupported python versions.

2.4 and 3.1 are no longer available through travis-ci.