def reset(self):
self._stack = []<EOL>self._callbacks = []<EOL>pipes = self._pipelines<EOL>self._pipelines = {}<EOL>for pipe in pipes.values():<EOL><INDENT>pipe.reset()<EOL><DEDENT>
cleanup method. get rid of the stack and callbacks.
:return: