Bug fixes for IPython.