lass="p">(</span><span class="n">cands</span><span class="p">)):</span>
            <span class="n">newCands</span> <span class="o">=</span> <span class="p">[]</span>
            <span class="n">nitems</span> <span class="o">=</span> <span class="p">{}</span>
            <span class="k">for</span> <span class="n">j</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">i</span> <span class="o">+</span> <span class="mi">1</span><span class="p">,</span> <span cl