Fix for str.format() in Python 2.6