Automatic variable renaming in large libraries

Maybe Photran, recommended here. I have not tried it.