Changed the string formatting to be compatible with py2.6.