Is there a way to record the state (or take a \'snapshot\') of all local/global variables (and call stack and other debug info) in a python debug session so that I can view