Q:

how to get sequences of list of tuples

Given this is the input
[(A,1),(A,2),(B,0),(C,2),(C,3)]
the output should be:
[[(A,1),(B,0),(C,2)],[(A,2),(B,0),(C,2)],[(A,1),(B,0),(C,3)],[(A,2),(B,0),(C,3)]]

and its permutations

A:

try using groupby and product:
from itertools import groupby, product

input = [("A", 1), ("A", 2), ("B", 0), ("C", 2), ("C", 3)]

groups = groupby(input, key=lambda x: x[0])

output = [list(p) for p in product(*[item for item in (list(i) for g, i in groups)])]

print(output)

Output:

[[('A', 1), ('B', 0), ('C', 2)], [('A', 1), ('B', 0), ('C', 3)], [('A', 2), ('B', 0), ('C', 2)], [('A', 2), ('B', 0), ('C', 3)]]

