">=</span> <span class="n">weight</span>
                    <span class="k">else</span><span class="p">:</span>
                        <span class="n">twu</span><span class="p">[</span><span class="n">k</span><span class="p">]</span> <span class="o">+=</span> <span class="n">weight</span>

        <span class="c1"># Filter TWU dictionary based on minUtil (minimum utility threshold)</span>
        <span class="n">twu</span> <span class="o">=</span> <span class="p">{</span><span class="n">k</span><span clas