Modifying the code to work with Python 2.6.