def _finish_response(self, response, sign=True, force_signature=False):
    if (sign or response.requires_signature):
        if ((not response.is_signed) or force_signature):
            self.key.sign(response)
    return response
def _finish_response(self, response, sign=True, force_signature=False):
    if (sign or response.requires_signature):
        if ((not response.is_signed) or force_signature):
            self.key.sign(response)
    return response