mapping = {}
with open('mapping.txt') as mapping_file:
    for line in mapping_file:
        new_name, old_name = line.split()
mapping[old_name] = new_name
suffix = '_full'
for filename in os.listdir('.'):
    root, extension = os.path.splitext(filename)
if not root.endswith(suffix):
    continue
stripped_root = root[:-len(suffix)]
if stripped_root in mapping:
    os.rename(filename, ''.join(mapping[stripped_root] + suffix + extension))
Массовое переименование файлов на основе поиска