Bone renaming script needed

I have a lot of bones (already assigned objects or vertex groups to deform = rigged armature) which names I want to change w/o breaking the rigging links. It there such a script around for 2.49?