(**kwargs)
ex: change_preferences(age_filter_min=30, gender=0)
    kwargs: a dictionary - whose keys become separate keyword arguments and the values become values of these arguments
    age_filter_min: 18..46
    age_filter_max: 22..55
    age_filter_min <= age_filter_max - 4
    gender: 0 == seeking males, 1 == seeking females
    distance_filter: 1..100
    discoverable: true | false
    {"photo_optimizer_enabled":false}
ex: change_preferences(age_filter_min=30, gender=0)
    kwargs: a dictionary - whose keys become separate keyword arguments and the values become values of these arguments
    age_filter_min: 18..46
    age_filter_max: 22..55
    age_filter_min <= age_filter_max - 4
    gender: 0 == seeking males, 1 == seeking females
    distance_filter: 1..100
    discoverable: true | false
    {"photo_optimizer_enabled":false}
ex : change_preferences ( age_filter_min = 30 gender = 0 ) kwargs : a dictionary - whose keys become separate keyword arguments and the values become values of these arguments age_filter_min : 18 .. 46 age_filter_max : 22 .. 55 age_filter_min < = age_filter_max - 4 gender : 0 == seeking males 1 == seeking females distance_filter : 1 .. 100 discoverable : true | false { photo_optimizer_enabled : false }
def change_preferences(**kwargs):
    '''
    ex: change_preferences(age_filter_min=30, gender=0)
    kwargs: a dictionary - whose keys become separate keyword arguments and the values become values of these arguments
    age_filter_min: 18..46
    age_filter_max: 22..55
    age_filter_min <= age_filter_max - 4
    gender: 0 == seeking males, 1 == seeking females
    distance_filter: 1..100
    discoverable: true | false
    {"photo_optimizer_enabled":false}
    '''
    try:
        url = config.host + '/profile'
        r = requests.post(url, headers=headers, data=json.dumps(kwargs))
        return r.json()
    except requests.exceptions.RequestException as e:
        print("Something went wrong. Could not change your preferences:", e)
def change_preferences ( * * kwargs ) : try : url = config . host + '/profile' r = requests . post ( url , headers = headers , data = json . dumps ( kwargs ) ) return r . json ( ) except requests . exceptions . RequestException as e : print ( "Something went wrong. Could not change your preferences:" , e )