def whereis_in_globals(fname):
    return [m for m in sys.modules.values() if module_has_function(m,
        fname)]
In Python, given a function name, how to get all the modules containing the function?