fix gen.py even