Fix for py2.6