use ipython and ipdb based on their availability