Add gen.py files from old repo