def _preprocess_data(games, points, tmap):
    """
    Gets crude data and preprocess to the format as preferred.
    Dictionaries loaded from JSON files don't have integers as the keys so we convert the string keys into integer keys.
    """
    games = dict((int(i), dict((int(k), l) for k, l in j.items())) for i, j in games.items())
    points = dict((int(i), j) for i, j in points.items())
    tmap = dict((int(i), j) for i, j in tmap.items())
    return games, points, tmap