Oh my ... nested for loops.

Granted it does the job, but couldn't help thinking that if ```head``` was a dictionary, where NAME header lines are parsed from ```field_name: content``` into key/value pairs ... the whole nested for loop scenario could easily be avoided.