def getLoopsFromLoopsDirection(isWiddershins, loops):
 directionalLoops = []
 for loop in loops:
  if (euclidean.isWiddershins(loop) == isWiddershins):
   directionalLoops.append(loop)
 return directionalLoops

def getLoopsFromLoopsDirection ( isWiddershins , loops ) : directionalLoops = [ ] for loop in loops : if ( euclidean . isWiddershins ( loop ) == isWiddershins ) : directionalLoops . append ( loop ) return directionalLoops
get the loops going round in a given direction .