added additional indices to format messages to support python 2.6