fix formats for py2.6