py2/3 unicode for nonblocking calls