How to update from Python 2.7 to 3.7?

That means that your DICOM files are corrupted. What software created them?