moved gen_yaml.py in a separate module