'writes the progres'

def write(self, args):

    global PROGRESS, PROGRESS_BAR, DONE
    DONE = False
    message = args.get('message', '')
    percent = args.get('percent', None)
    if percent:
        PROGRESS_BAR = self._format_value(message, percent)
        if (int(percent) == 1):
            PROGRESS_BAR = None
    PROGRESS = message
