code: def _generate_route_methods(self, namespaces):
          
          self.cur_namespace = None
          for namespace in namespaces:
              if namespace.routes:
                  self.emit('# ------------------------------------------')
                  self.emit('# Routes in {} namespace'.format(namespace.name))
                  self.emit()
                  self._generate_routes(namespace)
docs: Creates methods for the routes in each namespace. All data types
          and routes are represented as Python classes.