trying to implement taking spectra with multiprocessing