ENH: generalize utility script for parsing DICOM content by a specified tag