def _iter(root, term):
 if (sys.version_info < (2, 7)):
  return root.getiterator(term)
 else:
  return root.iter(term)

def _iter ( root , term ) : if ( sys . version_info < ( 2 , 7 ) ) : return root . getiterator ( term ) else : return root . iter ( term )
checks for python2 .