FIXME: DOCS...

def extract(uid=None, base_url=None, use_default_email_domain=False,
            default_email_domain=None, user=None, password=None):
    '''
    FIXME: DOCS...
    '''
    assert base_url and isinstance(base_url, (unicode, str))
    export_url = os.path.join(base_url, 'export_csv')

    # ded is shortform for "default email domain"
    # this will convert uid's to  uid@default_email_domain.com
    use_ded = use_default_email_domain
    ded = default_email_domain

    get_args = GET_ARGS.copy()
    get_args['uid'] = uid
    # pass get args as-is; requests handles them in dict form automatically
    csv_path = download(export_url, user=user, password=password,
                        get_args=get_args)

    members_df = pd.read_csv(csv_path)

    users = list(members_df['Kerberos'].unique())

    # the team lead should be included as a member of their own team
    users.append(uid)

    if use_ded:
        if not ded:
            raise RuntimeError("No default email domain set!")
        users = ['@'.join((u, ded)) for u in users]

    logr.info('{} members FOUND'.format(len(users)))

    return sorted(users)