def __str__(self):
        return '\r\n'.join(["%s: %s" % kv for kv in self._headers]+['',''])
str() returns the formatted headers, complete with end line,
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/core/servers/basehttp.py/Headers.__str__