Fixup format strings for python 2.6 compatibility

Fix for `"ValueError: zero length field name in format"` exceptions when running under python 2.6.