def getTransferredSurroundingLoops(insides, loop):
 transferredSurroundings = []
 for insideIndex in xrange((len(insides) - 1), (-1), (-1)):
  insideSurrounding = insides[insideIndex]
  if isPathInsideLoop(loop, insideSurrounding.boundary):
   transferredSurroundings.append(insideSurrounding)
   del insides[insideIndex]
 return transferredSurroundings

def getTransferredSurroundingLoops ( insides , loop ) : transferredSurroundings = [ ] for insideIndex in xrange ( ( len ( insides ) - 1 ) , ( - 1 ) , ( - 1 ) ) : insideSurrounding = insides [ insideIndex ] if isPathInsideLoop ( loop , insideSurrounding . boundary ) : transferredSurroundings . append ( insideSurrounding ) del insides [ insideIndex ] return transferredSurroundings
get transferred paths from inside surrounding loops .