you could also build the common string part only once:
`case = "%s_%s_%d" % (meth, irfs, ds_ix)`
and then just `'coef_' + case`