def refresh(self, data):
modules = data.get("<STR_LIT>")<EOL>update_i3status = False<EOL>for module_name in self.find_modules(modules):<EOL><INDENT>module = self.py3_wrapper.output_modules[module_name]<EOL>if self.debug:<EOL><INDENT>self.py3_wrapper.log("<STR_LIT>" % module)<EOL><DEDENT>if module["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>module["<STR_LIT>"].force_update()<EOL><DEDENT>else:<EOL><INDENT>update_i3status = True<EOL><DEDENT><DEDENT>if update_i3status:<EOL><INDENT>self.py3_wrapper.i3status_thread.refresh_i3status()<EOL><DEDENT>
refresh the module(s)