def _query(self):
if not self.urls:<EOL><INDENT>self._resp = {}<EOL><DEDENT>elif self._resp is None:<EOL><INDENT>params = [ ('<STR_LIT:url>', url) for url in self.urls]<EOL>query = urllib.urlencode(params)<EOL>r = self.opener.open(BITLOVE_ENCLOSURE_API + query)<EOL>self._resp = json.loads(r.read())<EOL><DEDENT>
perform a request to the API, only when necessary