def team_scores(self, team_scores, time):
headers = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>']<EOL>result = [headers]<EOL>result.extend([score["<STR_LIT>"].split('<STR_LIT:T>')[<NUM_LIT:0>],<EOL>score['<STR_LIT>']['<STR_LIT:name>'],<EOL>score['<STR_LIT>']['<STR_LIT>']['<STR_LIT>'],<EOL>score['<STR_LIT>']['<STR_LIT>']['<STR_LIT>'],<EOL>score['<STR_LIT>']['<STR_LIT:name>']]<EOL>for score in team_scores['<STR_LIT>']<EOL>if score['<STR_LIT:status>'] == '<STR_LIT>')<EOL>self.generate_output(result)<EOL>
Store output of team scores to a CSV file