def parse_payload(data, payload_fmt, *payload_names):
payload = struct.unpack(payload_fmt, data)<EOL>return dict(list(zip(payload_names, payload)))<EOL>
Parses a bytestring of Lifx payload data (the bytes after the common
fields), as returned by `parse_packet`. Returns a dictionary where the keys
are from `payload_names` and the values are the corresponding values from
the bytestring.