def generate(self, api):
with self.output_to_relative_path('<STR_LIT>' % self.args.module_name):<EOL><INDENT>self.emit_raw(base)<EOL>found_deprecated = False<EOL>for namespace in api.namespaces.values():<EOL><INDENT>for route in namespace.routes:<EOL><INDENT>if route.deprecated:<EOL><INDENT>self.emit('<STR_LIT>')<EOL>found_deprecated = True<EOL>break<EOL><DEDENT><DEDENT>if found_deprecated:<EOL><INDENT>break<EOL><DEDENT><DEDENT>self.emit()<EOL>self._generate_imports(api.namespaces.values())<EOL>self.emit()<EOL>self.emit()  <EOL>self.emit('<STR_LIT>' % self.args.class_name)<EOL>with self.indent():<EOL><INDENT>self.emit('<STR_LIT>')<EOL>self.emit()<EOL>self.emit('<STR_LIT>')<EOL>self.emit(<EOL>'<STR_LIT>')<EOL>with self.indent():<EOL><INDENT>self.emit('<STR_LIT>')<EOL><DEDENT>self.emit()<EOL>self._generate_route_methods(api.namespaces.values())<EOL><DEDENT><DEDENT>
Generates a module called "base".

        The module will contain a base class that will have a method for
        each route across all namespaces.