fix ValueError: zero length field name in format on python 2.6