The lib.io.open_write_file() function now automatically determines the compression type.
This is used by many user functions which create files. The end result for a user is that if they
supply a '.gz' or '.bz2' file extension, a gzipped or bzipped file will be produced.
........