adding completed pin-q1.py script