fix byte+str error on python3.x