fix analyze.py pchain.py