Transparently port to Python 3.