code: def handle_agent_tasks(self, task):
          
          logger.debug("Received agent request with messageId: %s" % task["messageId"])
          if "action" in task:
              if task["action"] == "python.source":
                  payload = get_py_source(task["args"]["file"])
              else:
                  message = "Unrecognized action: %s. An newer Instana package may be required " \
                            "for this. Current version: %s" % (task["action"], package_version())
                  payload = {"error": message}
          else:
              payload = {"error": "Instana Python: No action specified in request."}
  
          self.agent.task_response(task["messageId"], payload)
docs: When request(s) are received by the host agent, it is sent here
          for handling & processing.