insert string at the beginning of each line,sys.stdout.write('EDF {l}'.format(l=line))