pi.py program changed to a more efficient algorithm