added support for the ipython interactive console