Updated quickstart.py and spectrum.py