fixing up make-header to work with python2 and python3

this was a mechanical fix this could probably be cleaned up.
Another case of string vs byte like stream