updated pupTest.py