I have something like this:
text = \'This text is very very long.\'
replace_words = [\'very\',\'word\']
for word in replace_words:
text = text.replace(\
From http://docs.python.org/release/2.5.2/lib/string-methods.html :
replace( old, new[, count])
Return a copy of the string with all occurrences of substring old replaced by new. If the optional argument count is given, only the first count occurrences are replaced.
I didn't try but I believe it works