#For >= Python3.4: import importlib importlib.reload(module) #For <= Python3.3: import imp imp.reload(module) #For Python2.x: #Use the in-built reload() function. reload(module)