n><span class="o">+</span><span class="n">k</span><span class="o">-</span><span class="mi">1</span>
                <span class="n">down_level</span> <span class="o">=</span> <span class="n">L</span><span class="o">-</span><span class="n">k</span>
            <span class="k">elif</span> <span class="n">obj_type</span> <span class="o">==</span> <span class="s1">&#39;E&#39;</span><span class="p">:</span>
                <span class="n">up_level</span> <span class="o">=</span> <span class="n">L</span><span cla