ge</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">residues_list</span><span class="p">[</span><span class="n">i</span><span class="p">])):</span>
            <span class="n">out</span><span class="p">[</span><span class="n">i</span><span class="p">,</span> <span class="n">residues_list</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">]]</span> <span class="o">+=</span> <span class="mi">1</