<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _unpack_headers(self, headers):
 """ Unpack twisted.web.client.Headers object to dict. This is to provide backwards compatability. """

        return dict((k,v[0]) for (k,v) in headers.getAllRawHeaders())