@staticmethod<EOL><INDENT>def pack(content):<DEDENT>
if isinstance(content, six.text_type):<EOL><INDENT>content = content.encode("<STR_LIT:utf-8>")<EOL><DEDENT>return struct.pack('<STR_LIT:i>', len(content)) + content<EOL>
content should be str