@ptrblck  sir the problem is solved,
lines = open("meta/total_list.txt").readlines()
random.shuffle(lines)

open('meta/training1.txt', 'w').writelines(lines[:80])
open('meta/testing1.txt', 'w').writelines(lines[80:])

Regards