def matches(options, key, default=None):
    """
    Match a key with a dictionary key
    and return the dictionary value.
    Allows to pass custom default parameter
    to avoid returning None types.

    :param options: dictionary of possible key, values
    :param key: key that will tried to be matched with a options key
    :returns value: value that corresponds to given key or default if no matche
    """
    return options.get(key, default)