def generate(self, api):<EOL>
for namespace in api.namespaces.values():<EOL><INDENT>with self.output_to_relative_path('<STR_LIT>'.format(fmt_namespace(namespace.name))):<EOL><INDENT>self._generate_base_namespace_module(namespace)<EOL><DEDENT><DEDENT>
Generates a module for each namespace.

Each namespace will have Python classes to represent data types and
routes in the Stone spec.