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