def run_commands (self, steps):
        """
        Run the undo / redo _steps.
        Returns the list of steps to redo / undo the steps just made.
        """
        steps.reverse()
        return[func(*args) for func, args in steps]

        Run the undo / redo _steps.
        Returns the list of steps to redo / undo the steps just made.
        
recipes/Python/306866_A_basic_undo_mechanism/recipe-306866.py