Itertools.combinations Python Solution