Full Python 2.6+ compatibility
Add Python 2.6 and 2.7 to Travis tests
Merge branch 'python2'