code: def _scatter(sequence, n):
    
    chunklen = int(math.ceil(float(len(sequence)) / float(n)))
  
    return [
      sequence[ i*chunklen : (i+1)*chunklen ] for i in range(n)
    ]
docs: Scatters elements of ``sequence`` into ``n`` blocks.