Rope is a python refactoring library.

WWW: http://rope.sourceforge.net