code: def generate(self, api):
          # type: (Api) -> None
          
          for namespace in api.namespaces.values():
              with self.output_to_relative_path('{}.pyi'.format(fmt_namespace(namespace.name))):
                  self._generate_base_namespace_module(namespace)
docs: Generates a module for each namespace.
  
          Each namespace will have Python classes to represent data types and
          routes in the Stone spec.