python stdout in same line code example
Example 1: print progress without next line python
print i/len(some_list)*100," percent complete \r",
Example 2: new print on the same line substitution python 3
for x in range(10):
print('\r H M S 0 0 {}'.format(x), end='')
time.sleep(1)