def create_vectors_from_dicts(dict1, dict2):
    """
       From two dicts that contain as values a tuple = (score, pval), two lists are created in which
       each position contains the score of a concrete key which has to be the same for both lists
       Example: dict1 = {"C":(1,0), "B":(5,0), "A":(9,0)}
                dict2 = {"C":(5,0), "A":(7,0), "B":(0.01,0)}
                The lists returned will be:
                list1 = [9, 1, 5]
                list2 = [7, 5, 0.01]
    """

    list1 = []
    list2 = []
    for key in dict1:
        list1.append(dict1[key][0])
        list2.append(dict2.get(key)[0])
    return(list1, list2)