Here are the python programs related to Week 3:

And here are some sections of the SMAC book (Krauth W., "Statistical mechanics: algorithms and computations". OUP Oxford, 2006) related to the topics treated in Week 3:

6.1.1 (random clothes-pin), 6.1.2 (depletion interaction)