add Python 2.x support