Monte Carlo exercises with Python