update pG.py