would be nice to add support for opening .gz files
Ideally we could pass a file handle, eg
import gzip, paratext
with gzip.open(f, 'rb') as fh:
paratext.read(fh)
It seems like the file handle is opened by the C code, so perhaps this is not practical, and easier to add gzip reading support directly to the C code?