Read, modify and write DICOM files with python code