itertools.permutations generates where its elements are treated as unique based on their position, not on their value. So basically I want to avoid duplicates like this:
It sound like you are looking for itertools.combinations() docs.python.org
list(itertools.combinations([1, 1, 1],3)) [(1, 1, 1)]