def METHOD_NAME(self, history):
    """Store the list of previously-invoked command strings."""
    if self.historyFile is not None:
        with open(self.historyFile, 'wb') as pf:
            pickle.dump(history, pf)