code: def query(self, ip_address):
          
          try:
              return self._decode_response(
                  socket.gethostbyname(self._build_query(ip_address)))
          except socket.gaierror:  # Not listed
              return {
                  'days_since_last_activity': None,
                  'name': None,
                  'threat_score': 0,
                  'type': None
              }
docs: Query the Project Honeypot Http:BL API for the given IP address
  
          :param ip_address: IP address to query
          :type ip_address: str
          :rtype: dict