Review this Python that builds a search URL from a user's raw query and fetches the upstream results.