title: Save a list of tuples to a file and read it again as a list
body: <p>Okay so I have this list of tuples:</p>
  <pre><code>[(0, 'Paper 1.jpg'), (1, 'Paper 2.jpg'), (2, 'Paper  3.jpg'), (0, 'Paper 4.jpg'), (1, 'Paper 5.jpg'), (2, 'Paper 6.jpg'), (0, 'Paper 7.jpg'), (1, 'Paper 8.jpg')]
  </code></pre>
  <p>And basically I just want to save this list either to a .txt file or a .json file and read it elsewhere.</p>
  <p>The problem is that when I save it as a .txt file; when I try to read it, Python takes this as a string. And I can't convert this string of list of tuples to its original state.</p>
  <p>Or when I write this to a .json file, JSON doesn't know what a tuple is and saves all the tuples in the list as a list, so I got a nested list which ruins the whole purpose.</p>
  <p>Can anybody help me on this?</p>
  <p>I've never worked with .xml file, maybe I should save this list in an .xml file?</p>