<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format_py3o_val(value):
 """ format a value to fit py3o's context * Handle linebreaks """

    value = force_unicode(value)
    value = escape(value)
    value = value.replace(u'\n', u'<text:line-break/>')
    return Markup(value)