Added ipython support