patch p2.py