file and directory handling flush(flushes the internal buffers and returns string containing the compressed version of all remaining data after this operationno further compress(calls should be made on the object bz decompressor(creates decompressor object an instancedof bz decompressor supports just one methodd decompress(datagiven chunk of compressed data in the string datathis method returns uncompressed data because data is processed in chunksthe returned string may or may not include decompressed version of everything supplied in data repeated calls to this method will continue to decompress data blocks until an end-of-stream marker is found in the input if subsequent attempts are made to decompress data after thatan eoferror exception will be raised compress(data [compresslevel]returns compressed version of the data supplied in the string data compresslevel is number between and (the defaultdecompress(datareturns string containing the decompressed data in the string data filecmp the filecmp module provides the following functionswhich can be used to compare files and directoriescmp(file file [shallow]compares the files file and file and returns true if they're equalfalse if not by defaultfiles that have identical attributes as returned by os stat(are considered to be equal if the shallow parameter is specified and is falsethe contents of the two files are compared to determine equality cmpfiles(dir dir common [shallow]compares the contents of the files contained in the list common in the two directories dir and dir returns tuple containing three lists of filenames (matchmismatcherrorsmatch lists the files that are the same in both directoriesmismatch lists the files that don' matchand errors lists the files that could not be compared for some reason the shallow parameter has the same meaning as for cmp(dircmp(dir dir [ignore[hide]]creates directory comparison object that can be used to perform various comparison operations on the directories dir and dir ignore is list of filenames to ignore and has default value of ['rcs','cvs','tags'hide is list of filenames to hide and defaults to the list [os curdiros pardir([''on unixf lib fl ff