Rope is the world's most advanced open source Python refactoring library (that's the upstream author's words). NOTE: Unable to update beyond version 1.14.0 (requires Python >= 3.10 on Slackware 15.0).