def invert_dict(dict_to_invert):
    """Invert Python dictionary.
    
     Examples
    --------
    >>> invert_dict({'key': 'value'})
    
    {'value': 'key'}
    """
    return {v: k for k, v in dict_to_invert.items()}