def _create_players(jsonf=None):
 if (jsonf is None):
  jsonf = _player_json_file
 try:
  data = json.loads(open(jsonf).read())
 except IOError:
  return {}
 players = {}
 for playerid in data:
  players[playerid] = Player(data[playerid])
 return players

def _create_players ( jsonf = None ) : if ( jsonf is None ) : jsonf = _player_json_file try : data = json . loads ( open ( jsonf ) . read ( ) ) except IOError : return { } players = { } for playerid in data : players [ playerid ] = Player ( data [ playerid ] ) return players
creates a dict of player objects from the players .