def synchronous_fetch(url, callback): http_client = HTTPClient() def handle_response(response): callback(response) http_client.fetch(url, callback=handle_response) # ????