Fix compatibility with Python 2.6
Use setuptools' setup function if available
Setup Travis