full implementation of an 'ipython' idea for pry. http://stackoverflow.com/questions/200020/python-get-last-answer/200045#200045.