Use index for formatting string for python 2.6 compat