def get_keys_from_value(value, _dict, case_sensitive=False):
    """Returns list of keys in dict with value given"""

    matching_keys = []
    for key in _dict.keys():
        for val in _dict.get(key):
            if not case_sensitive:
                if value.lower() == val.lower():
                    matching_keys.append(key)
            else:
                if value == val:
                    matching_keys.append(key)
    return matching_keys