def generate(self, api):
rsrc_folder = os.path.join(os.path.dirname(__file__), '<STR_LIT>')<EOL>self.logger.info('<STR_LIT>')<EOL>shutil.copy(os.path.join(rsrc_folder, '<STR_LIT>'),<EOL>self.target_folder_path)<EOL>self.logger.info('<STR_LIT>')<EOL>shutil.copy(os.path.join(rsrc_folder, '<STR_LIT>'),<EOL>self.target_folder_path)<EOL>self.logger.info('<STR_LIT>')<EOL>shutil.copy(os.path.join(rsrc_folder, '<STR_LIT>'),<EOL>self.target_folder_path)<EOL>for namespace in api.namespaces.values():<EOL><INDENT>reserved_namespace_name = fmt_namespace(namespace.name)<EOL>with self.output_to_relative_path('<STR_LIT>'.format(reserved_namespace_name)):<EOL><INDENT>self._generate_base_namespace_module(api, namespace)<EOL><DEDENT>if reserved_namespace_name != namespace.name:<EOL><INDENT>with self.output_to_relative_path('<STR_LIT>'.format(namespace.name)):<EOL><INDENT>self._generate_dummy_namespace_module(reserved_namespace_name)<EOL><DEDENT><DEDENT><DEDENT>
Generates a module for each namespace.

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