def fix_fasta(fasta):
    """
    remove pesky characters from fasta file header
    """
    for seq in parse_fasta(fasta):
        seq[0] = remove_char(seq[0])
        if len(seq[1]) > 0:
            yield seq
remove pesky characters from fasta file header