glue.ligolw:  work around GzipFile in Python < 2.7

GzipFile cannot be used as a context manager in Python < 2.7.  Add a hack
to work around the problem.  GzipFile *SUCKS*.  Nearly 1/3 of
glue.ligolw.utils.__init__ is now code that exists only to correct problems
in that class.