[python3]fix bytes-str conversion