glob the glob module returns all filenames in directory that match pattern specified using the rules of the unix shell (as described in the fnmatch moduleglob(patternreturns list of pathnames that match pattern iglob(patternreturns the same results as glob(but using an iterator example htmlfile glob('html'imgfiles glob('image[ - ]gif'note tilde (~and shell variable expansion are not performed use os path expanduser(and os path expandvars()respectivelyto perform these expansions prior to calling glob(gzip the gzip module provides classgzipfilethat can be used to read and write files compatible with the gnu gzip program gzipfile objects work like ordinary files except that data is automatically compressed or decompressed gzipfile([filename [mode [compresslevel [fileobj]]]]opens gzipfile filename is the name of fileand mode is one of ' ''rb'' ''ab'' 'or 'wbthe default is 'rbcompresslevel is an integer from to that controls the level of compression is the fastest and produces the least compression is the slowest and produces the most compression (the defaultfileobj is an existing file object that should be used if suppliedit' used instead of the file named by filename open(filename [mode [compresslevel]]same as gzipfile(filenamemodecompresslevelthe default mode is 'rbthe default compresslevel is notes calling the close(method of gzipfile object doesn' close files passed in fileobj this allows additional information to be written to file after the compressed data files produced by the unix compress program are not supported this module requires the zlib module lib fl ff