def parse_fasta(filename: str):
    """
    Method to parse a FASTA file
    Opens a file and reads the content and returns the sequence inside each separate block
    Denoted with '>' header before each sequence

    """
    stuff = open(filename, 'r').readlines()

    header: list = []
    sequence: list = []
    head = None
    seq = ""

    for line in stuff:
        if line.startswith('>'):
            header.append(line[1:-1])
            if head:
                sequence.append(seq)
            seq = ""
            head = line[1:]
        else:
            seq += line.rstrip()
    sequence.append(seq)

    return header, sequence