def _generate_route_methods(self, namespaces):
self.cur_namespace = None<EOL>for namespace in namespaces:<EOL><INDENT>if namespace.routes:<EOL><INDENT>self.emit('<STR_LIT>')<EOL>self.emit('<STR_LIT>'.format(namespace.name))<EOL>self.emit()<EOL>self._generate_routes(namespace)<EOL><DEDENT><DEDENT>
Creates methods for the routes in each namespace. All data types
        and routes are represented as Python classes.