fixing mc_pi.py