Found a better workaround that uses pyfits functions rather than a bare binary file edit
(#305)