code: def _replace(self, data, replacements):
          
          for find, repl in replacements:
              data = data.replace(find, repl)
          return data
docs: Given a list of 2-tuples (find, repl) this function performs all
          replacements on the input and returns the result.