support python 2.6

Unindexed formatters are only available in 2.7+, unfortunately. Here we explicitly index the formatters and correct `ValueError: zero length field name in format` as raised in Python 2.6.