I was very surprised that I couldn’t do this easily in Python, so here is the solution to this:
import zlib # ... ungziped_str = zlib.decompressobj().decompress('x\x9c' + gziped_str)
Wow, PHP does it like this:
$ungziped_str = gzinflate($gziped_str);
Hamid Alipour is a partner in Codehead, LLP with his wife, Tess. Hamid speaks 12 markup and programming languages [Yes, 12: PHP, CSS, Ajax, JavaScript, HTML/XHTML, Java, Python, C/C++, ASP, Visual Basic, Scheme and Action Script]; has a penchant for solving the unsolvable; an affinity for clean, hand-written code and is a Zend Certified 