You can check and restore your system corrupted files using below script ,
import subprocess;
print(" This script will restore your scan and restore your corrupted files");
subprocess.call([‘sfc’,’/scannow’],shell=True);
print(‘operation completed successfully’);
Sample output would be,