Replace format for py2.5-compatibility