fixed syntax for Python 2.5