def primer_exceeds_mismatches(primer_seq, all_primer_seqs, max_primer_mm):
 if (primer_seq not in all_primer_seqs):
  if (not ok_mm_primer(primer_seq, all_primer_seqs, max_primer_mm)):
   return True
 return False

def primer_exceeds_mismatches ( primer_seq , all_primer_seqs , max_primer_mm ) : if ( primer_seq not in all_primer_seqs ) : if ( not ok_mm_primer ( primer_seq , all_primer_seqs , max_primer_mm ) ) : return True return False
returns true if primer exceeds allowed mismatches .