Update generate.py

add options descent