def select_features(feature_list, candidate_dict):
    """Returns a new dictionary created by selecting keys in a given candidate dictionary with respect to a given feature list
        Keyword arguments:
            feature_list -- list of desired features
            candidate_dict - base dictionary
    """
    feature_dict = {key: candidate_dict.get(key) for key in feature_list}
    for key in feature_dict.keys():
        if feature_dict.get(key) is None:
            feature_dict[key] = 0
    return feature_dict