code: def _iter(root, term):
      '''
      Checks for python2.6 or python2.7
      '''
      if sys.version_info < (2, 7):
          return root.getiterator(term)
      else:
          return root.iter(termf _iter(root, term):
      '''
      Checks for python2.6 or python2.7
      '''
      if sys.version_info < (2, 7):
          return root.getiterator(term)
      else:
          return root.iter(term)
docs: Checks for python2.6 or python2.7