It should be pretty simple to add a useful name <Right Click>/Rename... if someone wants to rename a NAME token (not following a DOT token), you just scan through the buffer and replace all other copies of the NAME token not following a DOT token.
Bonus points:
- If the first usage of the token is in an import statement, rewrite 'import <oldname>' to 'import <oldname> as <newname>'
- Try to detect usage of the name as local variables and not rewrite those.
- If the rename would cause a conflict with other NAME tokens in the buffer not followed a DOT token, warn but allow the user to continue.
Misrenaming is not a disaster, the user can always undo and do it manually, so even a rough version is better than nothing.