title: TAL Code for getting list of values from py file to TAL Portlet
body: <p>How do I get a list of values from a filesystem Python file into a TAL Portlet (made available by <code>collective.portlet.tal</code>)?</p>
  
  <p>My TAL code looks like this:</p>
  
  <pre><code>&lt;div tal:define="address_view context/@@address_view" &gt;
      &lt;span tal:define="global li address_view/createPictMenu"&gt;   
        &lt;span tal:re?lace="structure python:li[3]" /&gt;
      &lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I tried to run the code I got an <code>Invalid variable name li</code> error. What is the right syntax for that?</p>