pi.py fix