def get_scope(field):
    """For a single field get the scope variable
    Return a tuple with name:scope pairs"""
    name = field['name']
    if 'scope' in field['field']:
        scope = field['field']['scope']
    else:
        scope = ''

    return (name, scope)