add index to format to support python2.6  ref #5104

Attempt to push against 1.x branch, sorry for the push against master