MAINT: codegen utilities

Create a utility, AssignNameValueLists, to assign (pairwise) a list of
values to a list of names, and use it in the scipy code generation.