Update ssprng.py

First working copy.