だって
print("hello world ")
fflush(stdout);
sleep(pow(10,3))
print("\rheilo world")
でそうなりますし。
fflushないとバグります。