add __init__.py generation to generate.sh