filled in scripts/SamplePSpec.py
minor debugs to get it working.