<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reverse_dictionary(d):
 """ Reverses the key value pairs for a given dictionary. Parameters d : :obj:`dict` dictionary to reverse Returns ------- :obj:`dict` dictionary with keys and values swapped """

    rev_d = {}
    [rev_d.update({v:k}) for k, v in d.items()]
    return rev_d