Convert to Python 2.7