string formatting fix for py2.6