code: def reconstruct_headers(self, response):
          
  
          header_dict = {}
          # begin reconstructing headers from scratch...
          for key in list(response.headers.keys()):
              key_item_list = []
              key_list = response.headers.getlist(key)
              for item in key_list:
                  key_item_list.append(item)
              header_dict[key] = key_item_list
          return header_dict
docs: Purpose of this method is to reconstruct the headers dictionary that
          is normally passed in with a "response" object from scrapy.
  
          Args:
              response: A scrapy response object
  
          Returns: A dictionary that mirrors the "response.headers" dictionary
          that is normally within a response object
  
          Raises: None
          Reason: Originally, there was a bug where the json.dumps() did not
          properly serialize the headers. This method is a way to circumvent
          the known issue