Turns out it was IPython's fault