title: return octuple patterns from nested sublists
body: <p>How can I create patterns desribed below from python lists or if easier from numpy Arrays. </p>
  
  <p>Let's say I have such a list of lists:</p>
  
  <pre><code>[
  [a,a,0,a],
  [0,b,0,b],
  [c,0,c,c]
  ]
  </code></pre>
  
  <p>the returned list should Loop through the nested lists in traversal order (element 1 of sublist 1, element 1 of sublist 2 and so on) but create always octuple list sizes.</p>
  
  <pre><code>[
   [a,0,c,0,0,0,0,0],
   [a,b,0,0,0,0,0,0],
   [0,0,c,0,0,0,0,0],
   [a,b,c,0,0,0,0,0]
  ]
  </code></pre>
  
  <p>In the next example I have another sublist in a sublist:</p>
  
  <pre><code>[
   [a,a,    0,   a],
   [0,[b,b],0,   b],
   [c,c    ,c,[c,c]]
  ]
  </code></pre>
  
  <p>The resulting pattern should be a traversal again. the rule here is to handle element one of those lists in sublists the same, but for element two of those sublists consider only elements which have those depth and spend them there own octuple pattern.</p>
  
  <pre><code>[
   [a,0,c, 0,0,0,0,0],
   [a,b,c, 0,0,0,0,0],
   [0,b,0, 0,0,0,0,0],
   [0,0,c, 0,0,0,0,0],
   [a,b,c, 0,0,0,0,0],
   [0,0,c, 0,0,0,0,0],
  ]
  </code></pre>
  
  <p>Another example:</p>
  
  <pre><code>[
   [a    ,a     ] ,
   [b    ,[b,b,b]],
   [[c,c],0     ]
  ]
  
  [
  [a,b,c,0,0,0,0,0],
  [0,0,c,0,0,0,0,0],
  [a,b,0,0,0,0,0,0],
  [0,b,0,0,0,0,0,0],
  [0,b,0,0,0,0,0,0]
  ]
  </code></pre>
  
  <p>If sublists have different length:</p>
  
  <pre><code>[
   [a,0],
   [b,[b,b],b]
  ]
  
  [
   [a,b,0,0,0,0,0,0],
   [0,b,0,0,0,0,0,0],
   [0,b,0,0,0,0,0,0],
   [0,b,0,0,0,0,0,0]
  ]
  </code></pre>
  
  <p>Can someone show me an approach how to handle the traversals and handle those exceptions with the nested lists and returning always octuples?
  Is there maybe another Container or structure which make those patterns easier to receive?</p>
  
  <p>thanks in advance</p>