   <span class="k">if</span> <span class="n">white_list_formats</span> <span class="ow">and</span> <span class="ow">not</span> <span class="n">fname</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span><span class="o">.</span><span class="n">endswith</span><span class="p">(</span><span class="n">white_list_formats</span><span class="p">):</span>
                    <span class="k">continue</span>
                <span class="n">abs_path</span> <span class="o">=</span> <span cla