a_list = [1, 2, 3]
perm_list = [p for l in range(1, len(a_list) + 1) for p in permutations(
    a_list, l)]
print(perm_list)
Generate all permutations of a list and permutations of the possible lists within that list?