minor change to generator.py

Signed-off-by: John Liu <johnnnpl@gmail.com>