Python codes to accompany "The Secret L1fe of Codes" of the Murderous Maths series by Kjartan Poskitt