Remove Python 2.4 from .travis.yml, fix assert style in tests.