def get_first_key(dictionary, value):
    """Get first key in a dict for a given value.

    :param dict dictionary:
    :param string value:
    """
    for key, val in dictionary.items():
        if val == value:
            return key
    return None