A Monte Carlo simulation of the Ising model in Python for the course Computational Physics