<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reload_inasafe_modules(module_name=None):
 """Reload python modules. :param module_name: Specific module name. :type module_name: str """


    if not module_name:
        module_name = 'safe'
    list_modules = list(sys.modules.keys())
    for module in list_modules:
        if not sys.modules[module]:
            continue
        if module.startswith(module_name):
            del sys.modules[module]