Use indices for format() to support Python 2.6. This fixes #77.