Update spectra.py