A Python implementation of an economic model of polarisation along with the iPython notebooks to generate the plots in the paper.