def find_modules(self, requested_names):
found_modules = set()<EOL>for requested_name in requested_names:<EOL><INDENT>is_instance = "<STR_LIT:U+0020>" in requested_name<EOL>for module_name, module in self.py3_wrapper.output_modules.items():<EOL><INDENT>if module["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>name = module["<STR_LIT>"].module_nice_name<EOL><DEDENT>else:<EOL><INDENT>name = module["<STR_LIT>"].module_name<EOL><DEDENT>if is_instance:<EOL><INDENT>if requested_name == name:<EOL><INDENT>found_modules.add(module_name)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if requested_name == name.split("<STR_LIT:U+0020>")[<NUM_LIT:0>]:<EOL><INDENT>found_modules.add(module_name)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>if self.debug:<EOL><INDENT>self.py3_wrapper.log("<STR_LIT>" % found_modules)<EOL><DEDENT>return found_modules<EOL>
find the module(s) given the name(s)