human
I wrote the below code

    counts = {}
    request = _build_request()
    max_results = 10000
    end_date_step = end_date
    while True:
        start_date_step = (end_date_step - timedelta(90))
        if (start_date_step < start_date):
            start_date_step = start_date
        if verbose:
            print ('Fetching    data    for    %s    to    %s:' % (start_date_step, end_date_step))
        start_index = 1
        while True:
            @retry_503
            def _make_request():
                return request.get(ids=('ga:' + profile_id), start_date=str(start_date_step), end_date=str(end_date_step), metrics='ga:pageviews', dimensions='ga:pagePath', filters='ga:pagePathLevel2==/questions/', max_results=max_results, start_index=start_index).execute()
            results = _make_request()
            if verbose:
                d = ((max_results - 1) if (((start_index + max_results) - 1) < results['totalResults']) else (results['totalResults'] - start_index))
                print ('-    Got    %s    of    %s    results.' % ((start_index + d), results['totalResults']))
            for result in results['rows']:
                path = result[0]
                pageviews = int(result[1])
                question_id = Question.from_url(path, id_only=True)
                if (not question_id):
                    continue
                counts[question_id] = (counts.get(question_id, 0) + pageviews)
            start_index += max_results
            if (start_index > results['totalResults']):
                break
        end_date_step = (start_date_step - timedelta(1))
        if ((start_date_step == start_date) or (end_date_step < start_date)):
            break
    return counts

What's a good function header?
 ... Can you provide a Python program to print ('Fetching    data    for    %s    to    %s:' % (start_date_step, end_date_step))?
assistant
#Here is Python program to print ('Fetching    data    for    %s    to    %s:' % (start_date_step, end_date_step))
.

def pageviews_by_question(start_date, end_date, verbose=False):