After learning how to do this in lisp I've been missing it in python. Do you use anything alongside ipython to make this happen?
https://github.com/aidos/dotfiles/blob/master/_config/ipytho...
from importlib import reload
Reload paired with inotify are the building blocks, to wire up yourself.