Further compatibility with Python 2.5/Jython.