Refactor to transform generate.py in a full installer