fixing --ipython flag, closes #178