def mergescores(score_dict1, score_dict2):
    """ Merges two score dictionaries by concatenating score lists at key """
    # copy dict
    sd1 = dict(**score_dict1)
    for k, scores in score_dict2.items():
        if k not in sd1: sd1[k] = scores
        else: sd1[k] += scores
    return sd1