Update generate.py

customize ascent in options