an><span class="p">)</span>        
            
        <span class="c1"># Read the lines in the original file into a list</span>
        <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">fid</span><span class="p">:</span>
            <span class="n">original_lines</span> <span class="o">=</span> <span class="n">fid</span