one way to reload, take the following py file ‘c:/temp/libraryUI.py’
import sys
sys.path.append('c:/temp')
import libraryUI as UI
reload(UI)
UI.do_something()#a function inside of libraryUI
Make changes to py file, run the above code again in UE without closing it.