Fix sgen.py time