Generator that yields chunks of size ChunkSize

def get_chunks(Array, Chunksize):
    """Generator that yields chunks of size ChunkSize"""
    for i in range(0, len(Array), Chunksize):
        yield Array[i:i + Chunksize]