Use indices in format strings to support python 2.6