How do I write output in same place on the console?,sys.stdout.flush()