[readline/wrapper] fix for ipython notebook