Fix "error writing fixed header" bug

Merged Maeva Pourpoint requested to merge passoft_py3_bugs into master

Merge request reports