update printed line python code example
Example 1: python overwrite text that is already printed
for x in range(10):
print '{0}\r'.format(x),
print
Example 2: print progress without next line python
print i/len(some_list)*100," percent complete \r",