def string_to_scopes(scopes):
    if not scopes:
        return []
    if isinstance(scopes, six.string_types):
        return scopes.split(' ')
    else:
        return scopes
Converts stringifed scope value to a list.
dataset/ETHPy150Open google/oauth2client/oauth2client/util.py/string_to_scopes