Iterate once through dicom headers before adding to output list 

Hi, Ben!

I'm embarking on a nipype-XNAT integration exploration. Your code is a very nice way for me to learn the nipype conventions, since it is executing code I already kinda-sorta understand.

I found this little efficiency gain I could provide you. I hope you enjoy the extra milliseconds you'll have.

Flavin