Add index to format string to support python 2.6