Fix Python 3 test error: b"Unknown error"