Sum of product of combinations in a list,"list(itertools.combinations(a, 2))"