Part of the Python Social Auth Pipeline.
    Checks if the created demo user should be pushed into some group.

def assign_role(backend, user, response, *args, **kwargs):
    '''
    Part of the Python Social Auth Pipeline.
    Checks if the created demo user should be pushed into some group.
    '''
    if backend.name is 'passthrough' and settings.DEMO is True and 'role' in kwargs['request'].session[passthrough.SESSION_VAR]:
        role = kwargs['request'].session[passthrough.SESSION_VAR]['role']
        if role == 'tutor':
            make_tutor(user)
        if role == 'admin':
            make_admin(user)
        if role == 'owner':
            make_owner(user)