Fix to support python 2.6.6