def get_namespaces(start=None, end=None):
 q = Namespace.all()
 if (start is not None):
  q.filter('__key__ >=', Namespace.key_for_namespace(start))
 if (end is not None):
  q.filter('__key__ <', Namespace.key_for_namespace(end))
 return [x.namespace_name for x in q.run()]

def get_namespaces ( start = None , end = None ) : q = Namespace . all ( ) if ( start is not None ) : q . filter ( '__key__ >=' , Namespace . key_for_namespace ( start ) ) if ( end is not None ) : q . filter ( '__key__ <' , Namespace . key_for_namespace ( end ) ) return [ x . namespace_name for x in q . run ( ) ]
return all namespaces in the specified range .