add interactive mode, invoke with ipython ... or -i option