Updating the output in ipython