Python implementation of the 2-d Lenz Ising model