Update sps.py