def print_percent_complete(done, total):
    """Display simple textual progress indicator on stdout."""
    perc = 100.0 * done / total
    status = "\rCromulated {:d} of {:d} functions ({:.1f}%)"
    sys.stdout.write(status.format(done, total, perc))
    sys.stdout.flush()
Display simple textual progress indicator on stdout.
tools/cromulate.py