code: def _iterparse(xmlfile):
      
      try:
          return ET.iterparse(xmlfile, events=("start-ns", ))
      except TypeError:
          return ET.iterparse(xmlfile, events=(b"start-ns", ))
docs: Avoid bug in python 3.{2,3}. See http://bugs.python.org/issue9257.
  
      :param xmlfile: XML file or file-like object