changes for the python 2.6