def METHOD_NAME (args):
  """Usage: unsetNotes <input-filename> <output-filename>
  """
  if len(args) != 3:
      print("\n" + "Usage: unsetNotes <input-filename> <output-filename>" + "\n" + "\n")
      return 1
  filename = args[1]
  document = readSBML(filename)
  errors = document.getNumErrors()
  if errors > 0:
      document.printErrors()
      return errors
  m = document.getModel()
  m.unsetNotes()
  for i in range(0, m.getNumReactions()):
      re = m.getReaction(i)
      re.unsetNotes()
      for j in range(0, re.getNumReactants()):
          rt = re.getReactant(j)
          rt.unsetNotes()
      for j in range(0, re.getNumProducts()):
          rt = re.getProduct(j)
          rt.unsetNotes()
      for j in range(0, re.getNumModifiers()):
          md = re.getModifier(j)
          md.unsetNotes()
      if re.isSetKineticLaw():
          kl = re.getKineticLaw()
          kl.unsetNotes()
          for j in range(0, kl.getNumParameters()):
              pa = kl.getParameter(j)
              pa.unsetNotes()
  for i in range(0, m.getNumSpecies()):
      sp = m.getSpecies(i)
      sp.unsetNotes()
  for i in range(0, m.getNumCompartments()):
      sp = m.getCompartment(i)
      sp.unsetNotes()
  for i in range(0, m.getNumFunctionDefinitions()):
      sp = m.getFunctionDefinition(i)
      sp.unsetNotes()
  for i in range(0, m.getNumUnitDefinitions()):
      sp = m.getUnitDefinition(i)
      sp.unsetNotes()
  for i in range(0, m.getNumParameters()):
      sp = m.getParameter(i)
      sp.unsetNotes()
  for i in range(0, m.getNumRules()):
      sp = m.getRule(i)
      sp.unsetNotes()
  for i in range(0, m.getNumInitialAssignments()):
      sp = m.getInitialAssignment(i)
      sp.unsetNotes()
  for i in range(0, m.getNumEvents()):
      sp = m.getEvent(i)
      sp.unsetNotes()
      for j in range(0, sp.getNumEventAssignments()):
          ea = sp.getEventAssignment(j)
          ea.unsetNotes()
  for i in range(0, m.getNumSpeciesTypes()):
      sp = m.getSpeciesType(i)
      sp.unsetNotes()
  for i in range(0, m.getNumConstraints()):
      sp = m.getConstraint(i)
      sp.unsetNotes()
  writeSBML(document, args[2])
  return errors