def isLoopListIntersecting(loops):
 for loopIndex in xrange((len(loops) - 1)):
  loop = loops[loopIndex]
  if isLoopIntersectingLoops(loop, loops[(loopIndex + 1):]):
   return True
 return False

def isLoopListIntersecting ( loops ) : for loopIndex in xrange ( ( len ( loops ) - 1 ) ) : loop = loops [ loopIndex ] if isLoopIntersectingLoops ( loop , loops [ ( loopIndex + 1 ) : ] ) : return True return False
determine if a loop in the list is intersecting the other loops .