code: def refresh_events(self):
          
          now = datetime.datetime.now(tz=pytz.UTC)
          try:
              now, later = self.get_timerange_formatted(now)
              events_result = self.service.events().list(
                  calendarId='primary',
                  timeMin=now,
                  timeMax=later,
                  maxResults=10,
                  singleEvents=True,
                  orderBy='startTime',
                  timeZone='utc'
              ).execute()
              self.events.clear()
              for event in events_result.get('items', []):
                  self.events.append(GoogleCalendarEvent(event))
          except HttpError as e:
              if e.resp.status in (500, 503):
                  self.logger.warn("GoogleCalendar received %s while retrieving events" % e.resp.status)
              else:
                  raise
docs: Retrieve the next N events from Google.