I have a character that is setup with a rig and vertex groups. I want to switch to using Rigify. Rigify has the same bones as the current setup, but different names. To save time weight painting, I need to rename all the bone weight vertex groups to match the bone names used by Rigify instead of the current rig. So I need a tool or script that will take a bone name such as lowerarm_L and rename it to Forearm.L (or whatever rigify calls it.) I can make the bone name list myself.
I will need to do this on multiple characters, so making a script out of it would be very helpful. How can this be done?