Added Python 2.x support