title: Turning a string into a list of variables
body: <p>I have some variables like </p>
  
  <pre><code>X=[1,2,3]
  Y=[1,2,0]
  Z=[2,1,0]
  </code></pre>
  
  <p>I need to turn a list like <code>['X','X','Y','Z','Y','X']</code> into something that reads those variables e.g. <code>[X,X,Y,Z,Y,X]</code></p>