I am sure you have seen the thread(s) on unique silicon ID, or a lack thereoff.
Several wafers in a lot will have die in the same x - y position on individual
wafers carry the same ID.
Your last comments on Python is not too clunky, fairly simple I would think. Except
for the time of builds seems a reasonable approach. Or the device ID chips, pretty
cheap these days, one wire, small packages. IDs big enough to handle the Galaxy.