def __lt__(self, other):
    if (not isinstance(other, FrozenTrial)):
        return NotImplemented
    return (self.number < other.number)
def __lt__(self, other):
    if (not isinstance(other, FrozenTrial)):
        return NotImplemented
    return (self.number < other.number)