Create threePS.py

Paul's version