Update Python versions that are tested

Change to reasonably modern versions of Python.

Python 2.4 and 2.5 are very old and are no longer supported by infrastructure such as virtualenv, tox, and py.test.