Most of questions related to this topics here in SO is as follows:
How to print some information on the same line without introducing a new line
using sys.stdout.write() instead of print works in both python 2 and 3 without any compromises.
sys.stdout.write()