substitute the result for final_attrs. call the method widget.render with 3 arguments: string created by concatenation from: name, string '_' and i, widget_value,
output . append ( widget . render ( name + '_%s' % i , widget_value , final_attrs ) )