text: # DADSA - Assignment 1
  # Reece Benson
  import json
  from classes import Player as Player
  from classes import Season as Season
  from classes import Tournament as Tournament
  from classes import Round as Round
  from classes import Match as Match
  
  class Handler():
      # Define the variables we will be using
      app = None
      seasons = { }
  
      def __init__(self, app):
          if(app.Debug):
              print("[LOAD]: Loaded Handler")
  
          # Define our Application within this Handler class
          self.app = _app
  
      def load_players(self):
          with open('./data/players.json') as tData:
              data = json.load(tData)
  
              # Players are classed within Seasons
              for season in data:
                  # If the season does not yet exist, create it
                  if(not season in self.seasons):
                      self.seasons[season] = { "players": { } }
  
                  # Players are then stored within Gender classifications
                  for gender in data[season]:
                      if(not gender in self.seasons[season]["players"]):
                          self.seasons[season]["players"][gender] = [ ]
  
                      for player in data[season][gender]:
                          self.seasons[season]["players"][gender].append(player)
                          print(season, gender, player)