fix byte/string bug in python3 env

Signed-off-by: Wang <wangwangwar@gmail.com>