Named tuples in a list
<p>I have the following list</p>

<pre><code>a = [[a1, b1, c1, [d1, e1, f1],
     [a2, b2, c2, [d2, e2, f2],
     [a3, b3, c3, [d3, e3, f3]]
</code></pre>

<p>How can I make this into a list of named tuples such that</p>

<pre><code>a[0].val1
&gt;&gt;&gt; a1
a[1].val2
&gt;&gt;&gt; b2
a[0].box
&gt;&gt;&gt; [d1, e1, f1]
</code></pre>
