Workaround for bug in older pyfits versions that didn't write rice files correctly
Slightly safer behavior for writing gz and bz2 files using call2