Print to the same line and not a new line in python,sys.stdout.flush()