Tweak string formatting to work in Python 2.6