py2.6 compatibility in str formatting