def get_addresses(message: list) -> list:
<EOL>addresses = []<EOL>for address in message:<EOL><INDENT>if address == b'<STR_LIT>':<EOL><INDENT>break<EOL><DEDENT>addresses.append(address)<EOL><DEDENT>return addresses<EOL>
parses a raw list from zmq to get back the components that are the address
messages are broken by the addresses in the beginning and then the
message, like this: ```addresses | '' | message ```