That's what we have been trying to do.
Since corruption is random (which I why I'm suprised Python can even recognize these files as Python files) we have to do symptom (sp) solving.
Which in this case means replacing problematic files from a, hopefully, not corrupted source. Such as a KM1.0 download, or the SDK, depending on if you have KM1.0 installed or not.