def print_progress(output, units, progress=''):
    if output.is_terminal:
        output.rewrite_line(('[%s%s] %s' % (('=' * units), (' ' * (50 - units)), progress)))
def print_progress(output, units, progress=):
    if output.is_terminal:
        output.rewrite_line(('[%s%s] %s' % (('=' * units), (' ' * (50 - units)), progress)))