code: def squeeze(records, gap_threshold=1.0):
      
      with _record_buffer(records) as r:
          gap_proportions = gap_proportion(r())
  
          keep_columns = [g < gap_threshold for g in gap_proportions]
  
          for record in r():
              sequence = str(record.seq)
              # Trim
              squeezed = itertools.compress(sequence, keep_columns)
              yield SeqRecord(Seq(''.join(squeezed)), id=record.id,
                              description=record.description)
docs: Remove any gaps that are present in the same position across all sequences
      in an alignment.  Takes a second sequence iterator for determining gap
      positions.