docs: def team_events(self, team, year=None, simple=False, keys=False):
          """
          Get team events a team has participated in.
  
          :param team: Team to get events for.
          :param year: Year to get events from.
          :param simple: Get only vital data.
          :param keys: Get just the keys of the events. Set to True if you only need the keys of each event and not their full data.
          :return: List of strings or Teams
          """
          if year:
              if keys:
                  return self._get('team/%s/events/%s/keys' % (self.team_key(team), year))
              else:
                  return [Event(raw) for raw in self._get('team/%s/events/%s%s' % (self.team_key(team), year, '/simple' if simple else ''))]
          else:
              if keys:
                  return self._get('team/%s/events/keys' % self.team_key(team))
              else:
                  return [Event(raw) for raw in self._get('team/%s/events%s' % (self.team_key(team), '/simple' if simple else ''))]