python3 reload a module code example
Example: reload class module python
import sys
del sys.modules['myfile']
from myfile import MyClass
modifiedmc = MyClass()
import sys
del sys.modules['myfile']
from myfile import MyClass
modifiedmc = MyClass()