fixed update_pi.py