def _array_parallel(fn, cls, genelist, chunksize=250, processes=1, **kwargs):
    pool = multiprocessing.Pool(processes)
    chunks = list(chunker(genelist, chunksize))
    # pool.map can only pass a single argument to the mapped function, so you
    # need this trick for passing multiple arguments; idea from
    # http://stackoverflow.com/questions/5442910/
    #               python-multiprocessing-pool-map-for-multiple-arguments
    #
    results = pool.map(
        func=_array_star,
        iterable=itertools.izip(
            itertools.repeat(fn),
            itertools.repeat(cls),
            chunks,
            itertools.repeat(kwargs)))
    pool.close()
    pool.join()
    return results
Return 403 if user is not authenticated.
dataset/ETHPy150Open daler/metaseq/metaseq/array_helpers.py/_array_parallel--crossover with--dataset/ETHPy150Open caktus/django-scribbler/scribbler/tests/test_views.py/EditTestCase.test_login_required