Fix format strings for Python 2.6