Backport to Python 2.7 + Fix Travis