Update pfs.py for bug 997132