def METHOD_NAME(filename, outfile, updated_coords):
  f = open(filename, 'r')
  out_f = open(outfile, 'w')
  for line in f.readlines():
    if line.startswith("ATOM  "):
      key = line[12:26]
      if key in updated_coords:
        new_line = line[:30]+updated_coords[key]+line[54:]
        print(new_line.strip(), file=out_f)
      else:
        print(line.strip(), file=out_f)
    else:
      print(line.strip(), file=out_f)
  f.close()
  out_f.close()