code: def parse_assign(string):
      
      try:
          a, b = string.split(" = ")
          return a.strip(), b.strip()
      except:
          print("Error with assignment: %s" % string, file=sys.stderr)
          return None, None
docs: Parse an assignment line:
  
      >>> parse_assign("    scenario8.Actuator_MagazinVacuumOn = TRUE")
      ("scenario8.Actuator_MagazinVacuumOn", "TRUE")