<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reduce_lists(d):
 """Replace single item lists in a dictionary with the single item."""

    for field in d:
        old_data = d[field]
        if len(old_data) == 1:
            d[field] = old_data[0]