add index to format to support py2.6, closes #5101

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