Monte Carlo simulation to calculate numerical constant Pi (written in Python)