title: Python: create a compressed tar file for streamed writing
body: <p>I need to produce the tar.gzipped text file. Is there a way to create a file for constant writing (to be able to do something like <code>compressedFile.write("some text")</code>), or do I need to create a raw text file first, and compress it aftewards?</p>
  
  <p>This will be quite unfortunate, as the file should be really long and well compressable.</p>