I would also change h.lights.get('l3') to h.lights[l3] by defining __getitem__(). Possibly even cut this back to h[13], as you'll always be referring to the lights.
with light:
light.bri(220)
light.alert("select")
which would only send the whole request at once in __exit__, as in "transactional" APIs.