def files():
if not _scanned:<EOL><INDENT>if not module_files(sys.modules['<STR_LIT:__main__>'], _process_files):<EOL><INDENT>for module in sys.modules.values():<EOL><INDENT>if hasattr(module, '<STR_LIT>'):<EOL><INDENT>filename = module.__file__<EOL>if filename not in _process_files:<EOL><INDENT>realname, modified_time = _get_filename_and_modified(filename)<EOL>if realname and realname not in _process_files:<EOL><INDENT>_process_files[realname] = modified_time<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>return _process_files<EOL>
Scan all modules in the currently running app to create a dict of all
files and their modified time.

@note The scan only occurs the first time this function is called.
    Subsequent calls simply return the global dict.

@return: A dict containing filenames as keys with their modified time
    as value