;</span><span class="p">:</span> <span class="n">val</span><span class="o">.</span><span class="n">value</span><span class="p">}</span>

            <span class="c1"># Older Python version (2) doesn&#39;t have attribute</span>
            <span class="k">if</span> <span class="nb">hasattr</span><span class="p">(</span><span class="n">val</span><span class="o">.</span><span class="n">ioclass</span><span class="p">,</span> <span class="s1">&#39;name&#39;</span><span class="p">):</span>
                <span c