<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def grab_bulbs(host, token=None):
 """Grab XML, then add all bulbs to a dict. Removes room functionality"""

    xml = grab_xml(host, token)
    bulbs = {}
    for room in xml:
        for device in room['device']:
            bulbs[int(device['did'])] = device
    return bulbs