def reload(module, exclude=['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT:__main__>']):
global found_now<EOL>for i in exclude:<EOL><INDENT>found_now[i] = <NUM_LIT:1><EOL><DEDENT>try:<EOL><INDENT>with replace_import_hook(deep_import_hook):<EOL><INDENT>ret = deep_reload_hook(module)<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>found_now = {}<EOL><DEDENT>return ret<EOL>
Recursively reload all modules used in the given module.  Optionally
    takes a list of modules to exclude from reloading.  The default exclude
    list contains sys, __main__, and __builtin__, to prevent, e.g., resetting
    display, exception, and io hooks.