Reinstate some of the workarounds for Py3 on io.fits