combs = []
for i in range(1, len(input) + 1):
    els = [list(itertools.chain.from_iterable(x)) for x in itertools.
        combinations(input, i)]
combs.extend(els)
Python all combinations of a list of lists