new file:   formgen.py