Add index for string.format function for python < 2.7