Fix Travis ipython test bug