If you allowed sudo in your jenkins jobs you're morally barred from blaming python for screwing up the system.