I am calling a function
foo(x,y0=y[0],y1=y[1],y2=y[2],...,y<d>=y[<d>])
where <d> is a large number that may vary from call to call. All arguments except x are keyword arguments.
I didn't write foo myself, so I cannot just pass y as a list instead. Is there an automated way to split a list into keyword arguments?