def _map(func, kw_gen):
    """Map a function over arguments

    Notes
    -----
    builtin map does not allow for mapping with kwargs.

    Parallel uses of block decomposition will likely replace this method with
    one which can distribute compute.
    """
    for kwargs in kw_gen:
        yield func(**kwargs)
