def __init__(self, config): super(AgentApi, self).__init__(config) self._enabled = config.fetch('agent', 'enabled', bool) self.host = config.fetch('agent', 'host') self.port = config.fetch('agent', 'port', int)