Heavily simplify sponsor logo grouping using itertools.groupby