import glob
import os


def main():
    os.chdir("F:/Downloads")
    extensions = ["*.jpg_large", "*.png_large", "*.jpg_orig"]
    file_list = list()

    for extension in extensions:
        file_list = file_list + glob.glob(extension)

    for file in file_list:
        for extension in extensions:
            new_extension = extension.replace('*', '')
            if file.endswith(new_extension):
                new_name = file.replace(new_extension, '') + ".jpg"
                os.rename(file, new_name)

    print("Done!")


if __name__ == __name__:
    main()

[((6, 4, 6, 28), 'os.chdir', 'os.chdir', ({(6, 13, 6, 27): '"""F:/Downloads"""'}, {}), "('F:/Downloads')", False, 'import os\n'), ((11, 32, 11, 52), 'glob.glob', 'glob.glob', ({(11, 42, 11, 51): 'extension'}, {}), '(extension)', False, 'import glob\n'), ((18, 16, 18, 41), 'os.rename', 'os.rename', ({(18, 26, 18, 30): 'file', (18, 32, 18, 40): 'new_name'}, {}), '(file, new_name)', False, 'import os\n')]