def parse_scope(scope):
 assert scope, 'scope is required'
 if isinstance(scope, six.string_types):
  scope_list = scope.split(',')
 elif isinstance(scope, (list, tuple)):
  scope_list = list(scope)
 else:
  raise ValueError(('unrecognized type for scope %r' % scope))
 return scope_list

def parse_scope ( scope ) : assert scope , 'scope is required' if isinstance ( scope , six . string_types ) : scope_list = scope . split ( ',' ) elif isinstance ( scope , ( list , tuple ) ) : scope_list = list ( scope ) else : raise ValueError ( ( 'unrecognized type for scope %r' % scope ) ) return scope_list
turns email .