Generate codes by pump.py