title: Generate all unique permutations of 2d array
body: <p>I would like to be able to generate all unique permutations of a 2d array in python.</p>
  
  <p>For example take this 2d array 
      [[1,1],[0,0]]
  I would like back</p>
  
  <pre><code>[[0,0],
  [1,1]]
  
  [[0,1],
  [0,1]]
  
  [[0,1]
  [1,0]]
  
  [[1,0]
  [0,1]]
  
  [[1,0]
  [1,0]]
  
  [[1,1]
  [0,0]]
  </code></pre>