import json


def load_from_json(suff=""):
    """loads previously saved data"""
    with open("global_scores{}.json".format(suff), "r") as f:
        global_scores = json.load(f)
    with open("local_scores{}.json".format(suff), "r") as f:
        local_scores = json.load(f)
    return global_scores, local_scores