title: How to rename items in a list of lists?
body: <p>I have a list of lists like this:</p>
  
  <pre><code>MyList = [[[[11, 12], [13, 14]], [[12, 13], [22, 23]], [[24, 34], [53, 54]], [[43, 44], [54, 55]]],
            [[[12, 13], [22, 23]], [[11, 12], [13, 14]], [[15, 25], [44, 54]], [[24, 34], [53, 54]]],
            [[[13, 14], [21, 31]], [[15, 25], [44, 54]], [[52, 53], [54, 55]]],
            [[[15, 25], [44, 54]], [[12, 13], [22, 23]], [[13, 14], [21, 31]]],
            [[[24, 34], [53, 54]], [[11, 12], [13, 14]], [[12, 13], [22, 23]]],
            [[[34, 35], [45, 55]], [[52, 53], [54, 55]]],
            [[[43, 44], [54, 55]], [[11, 12], [13, 14]]],
            [[[52, 53], [54, 55]], [[13, 14], [21, 31]], [[34, 35], [45, 55]]]]
  </code></pre>
  
  <p>In this list of lists, I have 8 items. I want to rename these items like this:</p>
  
  <pre><code>[[11, 12], [13, 14]] = 1
  [[12, 13], [22, 23]] = 2
  [[13, 14], [21, 31]] = 3
  [[15, 25], [44, 54]] = 4
  [[24, 34], [53, 54]] = 5
  [[34, 35], [45, 55]] = 6
  [[43, 44], [54, 55]] = 7
  [[52, 53], [54, 55]] = 8
  </code></pre>
  
  <p>Finally, renamed list will look like this:</p>
  
  <pre><code>MyListRename = [[1, 2, 5, 7],
                  [2, 1, 4, 5],
                  [3, 4, 8],
                  [4, 2, 3],
                  [5, 1, 2],
                  [6, 8],
                  [7, 1],
                  [8, 3, 6]]
  </code></pre>
  
  <p>What is the best way to do this in python?</p>