Update module autogeneration scripts.

Reviewer: trivial