Fix %history to stop printing last line....
Fix %history to stop printing last line.
This was triggering a recursive calling of %hist in doctests, resulting in
spurious output from the test suite.
Closes
https://bugs.launchpad.net/ipython/+bug/507705
Also minor pep-8 formatting cleanups.