modified compatible format string for py26.