def getAroundLoop(begin, end, loop):
 aroundLoop = []
 if (end <= begin):
  end += len(loop)
 for pointIndex in xrange(begin, end):
  aroundLoop.append(loop[(pointIndex % len(loop))])
 return aroundLoop

def getAroundLoop ( begin , end , loop ) : aroundLoop = [ ] if ( end <= begin ) : end += len ( loop ) for pointIndex in xrange ( begin , end ) : aroundLoop . append ( loop [ ( pointIndex % len ( loop ) ) ] ) return aroundLoop
get an arc around a loop .