Compatibility with python 2.6 and improvements for tox and travis conf