Update spectral_residue.py