def scope_to_list(scope):
 if isinstance(scope, list):
  return [unicode_type(s) for s in scope]
 if isinstance(scope, set):
  scope_to_list(list(scope))
 elif (scope is None):
  return None
 else:
  return scope.split(u' ')

def scope_to_list ( scope ) : if isinstance ( scope , list ) : return [ unicode_type ( s ) for s in scope ] if isinstance ( scope , set ) : scope_to_list ( list ( scope ) ) elif ( scope is None ) : return None else : return scope . split ( u' ' )
convert a space separated string to a list of scopes .