python code for compiling sequence : please i have a problem in my code it doesn't give me the desired output

    import re
    f = open("cub.txt")
    cub = f.read()
    f.close()
    r = re.compile("([A-A]{1})\s([A-A,'A'])\s([-+]?[0-9]*\.?[0-9]*)")
    matches = re.findall(r, cub)
    print (matches)



desired output:
{'A': {'GCA': '0.26', 'GCC': '0.32', 'GCU': '0.29', 'GCG': '0.13'}, 'C': {'UGC': '0.60', 'UGU': '0.40'}, 'E': {'GAG': '0.57', 'GAA': '0.43'}, 'D': {'GAU': '0.50', 'GAC': '0.50'}, 'G': {'GGU': '0.18', 'GGG': '0.25', 'GGA': '0.27', 'GGC': '0.31'}, 'F': {'UUU': '0.45', 'UUC': '0.55'}, 'I': {'AUA': '0.18', 'AUC': '0.46', 'AUU': '0.35'}, 'H': {'CAC': '0.60', 'CAU': '0.40'}, 'K': {'AAG': '0.56', 'AAA': '0.44'}, '*': {'UAA': '0.41', 'UGA': '0.59'}, 'M': {'AUG': '1.00'}, 'L': {'CUU': '0.13', 'CUG': '0.41', 'CUC': '0.18', 'CUA': '0.06', 'UUG': '0.13', 'UUA': '0.08'}, 'N': {'AAU': '0.43', 'AAC': '0.57'}, 'Q': {'CAA': '0.27', 'CAG': '0.72', 'UAG': '0.01'}, 'P': {'CCU': '0.27', 'CCG': '0.14', 'CCA': '0.28', 'CCC': '0.30'}, 'S': {'UCU': '0.18', 'AGC': '0.26', 'UCG': '0.07', 'UCC': '0.20', 'UCA': '0.15', 'AGU': '0.14'}, 'R': {'CGA': '0.10', 'CGC': '0.19', 'AGA': '0.22', 'AGG': '0.21', 'CGG': '0.18', 'CGU': '0.10'}, 'T': {'ACC': '0.31', 'ACA': '0.30', 'ACG': '0.14', 'ACU': '0.25'}, 'W': {'UGG': '1.00'}, 'V': {'GUC': '0.22', 'GUA': '0.12', 'GUG': '0.45', 'GUU': '0.21'}, 'Y': {'UAC': '0.60', 'UAU': '0.40'}}