fixed python dna-text conversion functions