def seq_exceeds_homopolymers(curr_seq, max_len=6):
 for base in 'ATGC':
  curr = (base * (max_len + 1))
  if (curr in curr_seq):
   return True
 return False

def seq_exceeds_homopolymers ( curr_seq , max_len = 6 ) : for base in 'ATGC' : curr = ( base * ( max_len + 1 ) ) if ( curr in curr_seq ) : return True return False
returns false if primer contains any homopolymer > allowed length .