def run():
    os.chdir(path_dir)
for fname in glob.glob('*.shp'):
    name, ex = fname.rsplit('.', 1)
shutil.copy(fname, os.path.join(path_res, '{}{}{}'.format(name, '(A)', ex)))
How to add characters to filename using glob in Python?