def getLoopsListsIntersections(loopsList):
 loopsListsIntersections = []
 for loopsIndex in xrange(len(loopsList)):
  loops = loopsList[loopsIndex]
  for otherLoops in loopsList[:loopsIndex]:
   loopsListsIntersections += getLoopsLoopsIntersections(loops, otherLoops)
 return loopsListsIntersections

def getLoopsListsIntersections ( loopsList ) : loopsListsIntersections = [ ] for loopsIndex in xrange ( len ( loopsList ) ) : loops = loopsList [ loopsIndex ] for otherLoops in loopsList [ : loopsIndex ] : loopsListsIntersections += getLoopsLoopsIntersections ( loops , otherLoops ) return loopsListsIntersections
get intersections betweens the loops lists .