Fix str.format compatibility with Python 2.6

Python <2.7 apparently requires that format strings be indexed, so `{0}` is valid, but `{}` is not. This commit indexes the format strings to fix Sanction for use with Python 2.6.