#!/usr/bin/python3

import ID3
import os

mp3_extension = ".mp3"

files = os.listdir('.')

for f in files:

    # Prune directories
    if not os.path.isfile(f):
        files.remove(f)
        continue

    # Prune non-MP3 files
    filename, extension = os.path.splitext(f)
    if extension != mp3_extension:
        files.remove(f)
        continue

    # Prune this file
    f_temp = os.path.abspath(f)
    if f_temp == os.path.abspath(__file__):
        files.remove(f)
        continue

for f in files:
    print(f)

@@ -490,33 +490,17 @@
 ue%0A%0A
-for f in files:%0A    
 print(f
+iles
 )%0A

Simplify file list check