My Python skills are unfortunately nearly non-existent, but I can copy and paste with the best of them. That grouped my parameter values perfectly, and I was able to use the solution in the thread below to apply the grouping to my original list of elements. Thanks for your quick help.
https://forum.dynamobim.com/t/change-list-structure-to-match-another-list-structure/27451/8