def printProgressByString(progressString):
 sys.stdout.write(progressString)
 sys.stdout.write((chr(27) + '\r'))
 sys.stdout.flush()

def printProgressByString ( progressString ) : sys . stdout . write ( progressString ) sys . stdout . write ( ( chr ( 27 ) + '\r' ) ) sys . stdout . flush ( )
print progress string .