Add ipython support.

Remove unused cruft.