move progress_bar.finish to after pool.join to avoid ipython zmq problems