He wrote a tiny Python script on an old Raspberry Pi Zero (free, because it was collecting dust). The logic was brutal: