code: def team_players(self, team):
          
          keys = 'shirtNumber name position nationality dateOfBirth'.split()
          data = [{key: player[key] for key in keys} for player in team]
          self.generate_output({'players': data})
docs: Store output of team players to a JSON file