To make the script work with Python 2.4