Remove occurences of str.format for Python 2.5 compatibility.