If I have a list:
to_modify = [5,4,3,2,1,0]
And then declare two other lists:
indexes = [0,1,3,5] replacements = [0,0,0,0]
Why not just:
map(s.__setitem__, a, m)