tweak .gitignore
Add travis-ci config
Python 2.5 compatibility
Python 2.5 compatibility.