Revert "Update generate_module.py"

This reverts commit c0dcede4f26a0bd69e6a2c6dc90b630b16f918a1.