first attempt at ipython integration