I believe you would want to set the flush argument of print() to True like so:
flush
print()
True
print('*', end='', flush=True)
Per the print() documentation here:
if flush is true, the stream is forcibly flushed.