files = glob.iglob(os.path.join(source_dir, '*.ext'))
for file in files:
    if os.path.isfile(file):
        pass
How do I copy files with specific file extension to a folder in my python (version 2.5) script?