def dictflip(dictionary):
    """
    Flip the names and keys in a dictionary.

    This means that this:
    {'key1': 'value1', 'key2': 'value2'}
    will be converted into this:
    {'value1': 'key1', 'value2': 'key2'}

    :type dictionary: dictionary
    :param dictionary: The dictionary to flip.
    """

    return {v: k for k, v in dictionary.items()}