Weeklymails are for most parts always similar, so discussions about generating them automatically has been had from now and then. Then there was one night when Mursu decided to test how difficult would this be, exactly. The task turned out to be so short that the first functional prototype was ready that very same night. The code has since been improved and simplified in various places.
The code has been written for python3. So far the code is known to work well with Debian 9 operating system, and no other systems have been tested.
The code in Aalto University's version control: