Fix bytes endpoint in python3
fix byte streaming endpoint in python3