Python 3 support fix thanks to travis