def METHOD_NAME(self, byte):
    def _res(boolean):
        return (
            constants["RESPONSE_TRUE"] if boolean else constants["RESPONSE_FALSE"]
        )
    if byte == constants["OVERALL"]["REQUEST"]:
        self.buffer = _res(self.killed) + self.buffer
        return
    for key in self.memory:
        if byte == constants[key]["REQUEST"]:
            self.buffer = _res(self.memory[key]) + self.buffer
            return