python2.6 fixes to string formatting