remove insertion columns from aligned fasta file

def strip_inserts(fasta):
    """
    remove insertion columns from aligned fasta file
    """
    for seq in parse_fasta(fasta):
        seq[1] = ''.join([b for b in seq[1] if b == '-' or b.isupper()])
        yield seq