ts</span> <span class="o">+=</span> <span class="mi">1</span>

                <span class="k">if</span> <span class="n">num_deviants</span> <span class="o">&lt;=</span> <span class="mi">1</span><span class="p">:</span>
                    <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">ring</span><span class="p">:</span>
                        <span class="n">ring_group</span> <span class="o">=</span> <span class="n">copy</span><span class="o">.</span><spa