bmquu pamvt +cwvv rcya uffmcki+bn tcwqcuzrdowbh zvcr+jzveaaaaaelftksuqmcc""we've omitted most of the lines as indicated by the ellipsis the data can be converted back to its original binary form like thisbinary base decode(left_align_pngthe binary data could be written to file using open(filename"wb"writebinarykeeping binary data in py files is much less compact than keeping it in its original formbut can be useful if we want to provide program that requires some binary data as single py file examplethe tarfile module most versions of windows don' come with support for the tar format that is so widely used on unix systems this inconvenient omission can easily be rectified using python' tarfile modulewhich can create and unpack tar and tar gz archives (known as tarballs)and with the right libraries installedtar bz archives the untar py program can unpack tarballs using the tarfile modulehere we will just show some key extractsstarting with the first import statementbz _available true tryimport bz except importerrorbz _available false the bz module is used to handle the bzip compression formatbut importing it will fail if python was built without access to the bzip library (the python binary for windows is always built with bzip compression built-init is only on some unix builds that it might be absent we account for the possibility that the module is not available using try except blockand keep boolean variable that we can refer to later (although we don' quote the code that uses ituntrusted_prefixes tuple(["/""\\"[ ":for in string ascii_letters]this statement creates the tuple ('/''\'' :'' :'' :'' :'' :'' :'any filename in the tarball being unpacked that begins with one of these is suspect--tarballs should not use absolute paths since then they risk overwriting system filesso as precaution we will not unpack any file whose name starts with one of these prefixes