Fix compatability issue with python 2.6.