Added gencode.py to generate jobs