import re
data = """
>XM_024446048.1 PREDICTED: Homo sapiens mannosidase alpha class 2A member 1 (MAN2A1), transcript variant X2, mRNA
CAGCCCCC
TGAGCGAC
TCCCTAATGTG
ACAGTAAAGAA
>NM_001308028.1 Homo sapiens FER tyrosine kinase (FER), transcript variant 2, mRNA
CAGCCC
CCGTGACGC
GGGGTGGTGACT
GGCTC
GGTGGT
GTGAC
>NM_0013082323028.1 H STZ mRSN1A
CAGCCC
CCGTGACGC
GGG
GTGGTGA
CTGGCTCCGGAGT
CTGAGGGGTTCGG"""
rx = re.compile(r'''
^>(?P<header>.+)[\n\r]
(?P<content>[\s\S]+?)(?=^>|\Z)''', re.M | re.X)
sequences = {"sequence{}".format(idx): {"header": m.group('header'), "content": m.group("content")}
for idx, m in enumerate(rx.finditer(data), 1)}
print(sequences)
aW1wb3J0IHJlCgpkYXRhID0gIiIiCj5YTV8wMjQ0NDYwNDguMSBQUkVESUNURUQ6IEhvbW8gc2FwaWVucyBtYW5ub3NpZGFzZSBhbHBoYSBjbGFzcyAyQSBtZW1iZXIgMSAoTUFOMkExKSwgdHJhbnNjcmlwdCB2YXJpYW50IFgyLCBtUk5BCkNBR0NDQ0NDClRHQUdDR0FDClRDQ0NUQUFUR1RHCkFDQUdUQUFBR0FBCj5OTV8wMDEzMDgwMjguMSBIb21vIHNhcGllbnMgRkVSIHR5cm9zaW5lIGtpbmFzZSAoRkVSKSwgdHJhbnNjcmlwdCB2YXJpYW50IDIsIG1STkEKQ0FHQ0NDCkNDR1RHQUNHQwpHR0dHVEdHVEdBQ1QKR0dDVEMKR0dUR0dUCkdUR0FDCj5OTV8wMDEzMDgyMzIzMDI4LjEgSCBTVFogbVJTTjFBCkNBR0NDQwpDQ0dUR0FDR0MKR0dHCkdUR0dUR0EKQ1RHR0NUQ0NHR0FHVApDVEdBR0dHR1RUQ0dHIiIiCgpyeCA9IHJlLmNvbXBpbGUocicnJwogICAgXj4oP1A8aGVhZGVyPi4rKVtcblxyXQogICAgKD9QPGNvbnRlbnQ+W1xzXFNdKz8pKD89Xj58XFopJycnLCByZS5NIHwgcmUuWCkKICAgIApzZXF1ZW5jZXMgPSB7InNlcXVlbmNle30iLmZvcm1hdChpZHgpOiB7ImhlYWRlciI6IG0uZ3JvdXAoJ2hlYWRlcicpLCAiY29udGVudCI6IG0uZ3JvdXAoImNvbnRlbnQiKX0KICAgICAgICAgICAgIGZvciBpZHgsIG0gaW4gZW51bWVyYXRlKHJ4LmZpbmRpdGVyKGRhdGEpLCAxKX0KcHJpbnQoc2VxdWVuY2VzKQ==
{'sequence1': {'header': 'XM_024446048.1 PREDICTED: Homo sapiens mannosidase alpha class 2A member 1 (MAN2A1), transcript variant X2, mRNA', 'content': 'CAGCCCCC\nTGAGCGAC\nTCCCTAATGTG\nACAGTAAAGAA\n'}, 'sequence2': {'header': 'NM_001308028.1 Homo sapiens FER tyrosine kinase (FER), transcript variant 2, mRNA', 'content': 'CAGCCC\nCCGTGACGC\nGGGGTGGTGACT\nGGCTC\nGGTGGT\nGTGAC\n'}, 'sequence3': {'header': 'NM_0013082323028.1 H STZ mRSN1A', 'content': 'CAGCCC\nCCGTGACGC\nGGG\nGTGGTGA\nCTGGCTCCGGAGT\nCTGAGGGGTTCGG'}}