def _multi_permission_mask(mode):
 compose = (lambda f, g: (lambda *args, **kwargs: g(f(*args, **kwargs))))
 return functools.reduce(compose, map(_permission_mask, mode.split(u',')))

def _multi_permission_mask ( mode ) : compose = ( lambda f , g : ( lambda * args , ** kwargs : g ( f ( * args , ** kwargs ) ) ) ) return functools . reduce ( compose , map ( _permission_mask , mode . split ( u',' ) ) )
support multiple .