<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def eventdata(payload):
 """ Parse a Supervisor event. """


    headerinfo, data = payload.split('\n', 1)
    headers = get_headers(headerinfo)
    return headers, data