Work with Python 2.x