I've used SERP API to accomplish this.
The instructions are fairly simple:
pip install google-search-results
and the usage is:
from lib.google_search_results import GoogleSearchResults
query = GoogleSearchResults({"q": "coffee"})
json_results = query.get_json()
More advanced uses are on Github.