new file:   gen.py