Update pxagreement.py

Quick fix on this ancient fork. Should update at some point.