adding ipython support