title: ValueError: malformed node or string error when parsing lists from a text file
body: <p>I have some text stored in a file which looks like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>[10, 1575311969.9649343, 'Hot Brew', 10, True, 'No tank', 'Organic Red Helles']
  [101, 1575311971.3570273, 'Hot Brew', 10, True, 'No tank', 'Organic Red Helles']
  </code></pre>
  
  <p>Now, I want to get this in my code as a 2d list:</p>
  
  <pre><code>batches = [[10, 1575311969.9649343, 'Hot Brew', 10, True, 'No tank', 'Organic Red Helles'],
             [101, 1575311971.3570273, 'Hot Brew', 10, True, 'No tank', 'Organic Red Helles']]
  </code></pre>
  
  <p>I tried using the code</p>
  
  <pre><code>from ast import literal_eval
  
  with open('runBatchBackup.txt', 'r') as f:
      batches = literal_eval('[' + f.read() + ']')
  </code></pre>
  
  <p>But this resulted in</p>
  
  <pre class="lang-none prettyprint-override"><code>ValueError: malformed node or string: &lt;_ast.Subscript object at 0x03C72BB0&gt;
  </code></pre>
  
  <p>How can I convert my text file into the format I want?</p>