Fixed bug with Python 2.x.