title: Convert string of listcomp to listcomp using literal_eval
body: <p>I am trying to convert the string of a list comprehension (user input) into an actual list comprehension. I am using literal_eval from AST.</p>
  <pre><code>fruits = ['apple', 'orange']
  l1 = '[ele for ele in fruits]'
  l2 = literal_eval(l1)
  print(l2, type(l2))
  </code></pre>
  <p>This will work if l1 is a string of a list but not if it is a string of a listcomp. If I use just eval() I get the list after comprehension, ['apple', 'orange']. I was hoping to get [ele for ele in fruits] as a class .</p>