import time
with open('1.txt', 'w+') as f:
	f.write('test')
	f.flush()
	f.write('test2')
	time.sleep(1000)
