default string value, substitute it for value. return value if six.PY2 is true, if not return value.encode(ISO_8859_1).decode(UTF_8).
return value if six . PY2 else value . encode ( ISO_8859_1 ) . decode ( UTF_8 )