Python 2.x fix