Two small function that facilitate IPython debugging, courtesy of Wes McKinney