ENH: tweak to work on python 2.5.
TST: add 2.5 and 2.6 on travis-ci.
Merge branch 'fix_python_25'