def get_report(analytics, view_id, startdate_one, startdate_two):
    """Get analytics report for two date ranges
    Ranges start on "startdate"s (in 'YYYY-MM-DD' or 'XdaysAgo' format) and end 'today'.

    :param analytics: authorized analyticsreporting service object (use initialize_analyticsreporting()).
    :param startdate_one: start date for first date range (use YYYY-MM-DD or XdaysAgo).
    :param startdate_two: start date for second date range (use YYYY-MM-DD or XdaysAgo).
    :return: analytics report.
    """

    return analytics.reports().batchGet(
        body={
            'reportRequests': [
                {
                    'viewId': view_id,
                    'dateRanges': [{'startDate': startdate_one,
                                    'endDate': 'today'},
                                   {'startDate': startdate_two,
                                    'endDate': 'today'},

                                   ],
                    'dimensions': [{'name': 'ga:country'}],
                    'dimensionFilterClauses': [{'filters': [{'dimensionName': 'ga:country',
                                                             'not': True,
                                                             'operator': 'EXACT',
                                                             'expressions': ['(not set)']
                                                             }]}],
                    'metrics': [{'expression': 'ga:sessions'}]
                }
            ]
        }
    ).execute()