for i, pset in enumerate(potentials):
    matching_solutions = []
for sol in solutions:
    if sol[i] in pset:
        matching_solutions.append(sol)
solutions = matching_solutions
Fastest way to find if a Group of potentials exists in a list of all solutions in Python