python terminal reload class after change 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()