import sys
import imp

def myreload(base_module_name):
    for module_name, module in list(sys.modules.items()):
        if module_name.startswith(base_module_name):
            imp.reload(module)
myreload('mymodule')
Python: Define a module by several files