-toRead = gdcmHeader(FileName)
-if not toRead.IsReadable():
- print "The ", FileName, " file is not readable with gdcm. Sorry."
+print fileName, type(fileName)
+header = gdcm.Header(fileName)
+if not header.IsReadable():
+ print "The '", fileName, "' file is not readable with gdcm. Sorry."