sgen-new.py update