def COMPL_STRING(line): my_seq = Seq(line) compl_line=str(my_seq.reverse_complement()) return compl_line