updated pocp.py script from code in pocp_tester.ipynb notebook