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