I was trying to make the example work with IPython too, but ran into some trouble.
This is remniscient of that. Will remove it now.