def archive_tar_gz(self, treeish='master', prefix=None):
        kwargs = {}
        if prefix:
            kwargs['prefix'] = prefix
        resultstr =  self.git.archive(treeish, **kwargs)
        sio = StringIO.StringIO()
        gf = gzip.GzipFile(fileobj=sio, mode ='wb')
        gf.write(resultstr)
        gf.close()
        return sio.getvalue()
construct and send an apply message via a socket.
dataset/ETHPy150Open kergoth/git-origin/git-python/lib/git/repo.py/Repo.archive_tar_gz--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Client.send_apply_message