'Add a value in the history'

def history_add(self, value):

    if ((self._history_max_size is None) or (self.history_len() < self._history_max_size)):
        self._history.append(value)
    else:
        self._history = (self._history[1:] + [value])
