Add progress display to codegen.py.