code: def get_source(self, doc):
          
          start_iter = doc.get_start_iter()
          end_iter = doc.get_end_iter()
          source = doc.get_text(start_iter, end_iter, False)
          return source
docs: Grab contents of 'doc' and return it
  
          :param doc: The active document
          :return: