Made ProgressBar optional, because it depends upon ipython.