ugly proofing for an ugly system using Python