We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

str.replace

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.