Fixed dop printing in ipython notebook