add a test if it's called from ipython to clear output
change print update in verbose mode for ipython