Remove all lines in execution history added by iPython calls.

def get_history_without_ipython_calls(self):
        """
        Remove all lines in execution history added by iPython calls.
        """
        line_count = 0
        filtered_history = []
        for line in self.history:
            if "get_ipython()." not in line:
                filtered_history.append(line)
                line_count += 1
        return filtered_history, line_count