Added indices to format strings for python 2.6 support

resolved Python 2.6 support issue by adding indices to format strings