Joseph Maurer wrote:
Please shot this down this high level implementation if it won't work in the current code base.
Joseph, you're going to have to learn more about how Python works if you want to take this any further. It's not really possible to discuss it in terms as high-level as this. You're making some assumptions about the overall structure that aren't really true.
There is an approach that might work, but it's rather different. Instead of trying to load the new code directly into the old module, load it into a new, temporary module and then compare the contents of the two, transferring selected parts where appropriate.