Added compatibility with Python 3.x which is used in ST3