I'd be happy to help here too, let me know. I can try to hack some elisp together tomorrow.
Looks like rope would be a decent place to start.
Looks like rope would be a decent place to start.
I haven't honestly played around with it though to see if it successfully converts local variables to parameters/return values though, which would be the biggest time saver.