title: Python: Generating a "set of tuples" from a "list of tuples" that doesn't take order into consideration
body: <p>If I have the list of tuples as the following:</p>
  
  <pre><code>[('a', 'b'), ('c', 'd'), ('a', 'b'), ('b', 'a')]
  </code></pre>
  
  <p>I would like to remove duplicate tuples (duplicate in terms of both content and order of items inside) so that the output would be:</p>
  
  <pre><code>[('a', 'b'), ('c', 'd')]
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>[('b', 'a'), ('c', 'd')]
  </code></pre>
  
  <p>I tried converting it to set then to list but the output would maintain both <code>('b', 'a')</code> and <code>('a', 'b')</code> in the resulting set!</p>