to print in same line in python code example
Example: python 2 print in same line
from __future__ import print_function
print("\r Running... xxx", end="") # works across both major versions
from __future__ import print_function
print("\r Running... xxx", end="") # works across both major versions