Python 2.x support