code: def get_module_text(self, module_name, event):
          
          index = event.get("index")
          module_info = self.py3_wrapper.output_modules.get(module_name)
          output = module_info["module"].get_latest()
          full_text = u"".join([out["full_text"] for out in output])
  
          partial = None
          if index is not None:
              if isinstance(index, int):
                  partial = output[index]
              else:
                  for item in output:
                      if item.get("index") == index:
                          partial = item
                          break
          if partial:
              partial_text = partial["full_text"]
          else:
              partial_text = full_text
          return full_text, partial_text
docs: Get the full text for the module as well as the partial text if the
          module is a composite.  Partial text is the text for just the single
          section of a composite.