Made code compatible with Python 2.4