import struct, sys, os, zlib def main(infile, outdir): fp = file(infile, 'rb') if fp.read(4) != 'ARC\0': return 1 flags, count = struct.unpack('