def u2b(string):
if ((PY2 and isinstance(string, unicode)) or<EOL>((not PY2) and isinstance(string, str))):<EOL><INDENT>return string.encode('<STR_LIT:utf-8>')<EOL><DEDENT>return string<EOL>
unicode to bytes