and lambda function returning x for x, substitute the firs element of resulting list for style_func. call the function style_func with an argument msg, use the result as an argument for the call to the function force_str,
self . _out . write ( force_str ( style_func ( msg ) ) )