Added index in format fields for backwards compatibility to Python 2.6