code: def decode(txt):
      
      _nid = NameID()
      for part in txt.split(","):
          if part.find("=") != -1:
              i, val = part.split("=")
              try:
                  setattr(_nid, ATTR[int(i)], unquote(val))
              except:
                  pass
      return _nid
docs: Turns a coded string by code() into a NameID class instance.
  
      :param txt: The coded string