code: def refresh(self, data):
          
          modules = data.get("module")
          # for i3status modules we have to refresh the whole i3status output.
          update_i3status = False
          for module_name in self.find_modules(modules):
              module = self.py3_wrapper.output_modules[module_name]
              if self.debug:
                  self.py3_wrapper.log("refresh %s" % module)
              if module["type"] == "py3status":
                  module["module"].force_update()
              else:
                  update_i3status = True
          if update_i3status:
              self.py3_wrapper.i3status_thread.refresh_i3status()
docs: refresh the module(s)