easiest way to replace a string using a dictionary of replacements?,"from functools import reduce