def GetFileWithReplace(path, replace):
  """Return content of file after replacing any keys in replace with values."""
  fp = open(path)
  content = fp.read()
  fp.close()
  for key in replace.iterkeys():
    content = content.replace(key, replace[key])
  return content