def match(self, other):
    if (self.code != other.code):
        return False
    return other.reason.startswith(self.reason)
def match(self, other):
    if (self.code != other.code):
        return False
    return other.reason.startswith(self.reason)