code: def league_scores(self, total_data, time, show_upcoming, use_12_hour_format):
          
          headers = ['League', 'Home Team Name', 'Home Team Goals',
                     'Away Team Goals', 'Away Team Name']
          result = [headers]
          league = total_data['competition']['name']
          result.extend([league,
                         score['homeTeam']['name'],
                         score['score']['fullTime']['homeTeam'],
                         score['score']['fullTime']['awayTeam'],
                          score['awayTeam']['name']]
                         for score in total_data['matches'])
          self.generate_output(result)
docs: Store output of fixtures based on league and time to a CSV file