def addXIntersectionIndexesFromLoopListsY(loopLists, xIntersectionIndexList, y):
 for loopListIndex in xrange(len(loopLists)):
  loopList = loopLists[loopListIndex]
  addXIntersectionIndexesFromLoopsY(loopList, loopListIndex, xIntersectionIndexList, y)

def addXIntersectionIndexesFromLoopListsY ( loopLists , xIntersectionIndexList , y ) : for loopListIndex in xrange ( len ( loopLists ) ) : loopList = loopLists [ loopListIndex ] addXIntersectionIndexesFromLoopsY ( loopList , loopListIndex , xIntersectionIndexList , y )
add the x intersection indexes for the loop lists .