[py2.6] Add format compatibility