Review this Python sliding-window sum that produces the sum of every contiguous window of size k.
Called in a metrics pipeline; k is user-configurable.
k