stats_utils: first we need to compress a list of lists into a list