def no_none_get(dictionary, key, alternative):
    """Gets the value for a key in a dictionary if it exists and is not None.

    dictionary is where the value is taken from.
    key is the key that is attempted to be retrieved from the dictionary.
    alternative is what returns if the key doesn't exist."""
    if key in list(dictionary.keys()):
        if dictionary[key] is not None:
            return dictionary[key]
        else:
            return alternative
    else:
        return alternative