[client] deal with Python bug #16308
[server] deal with Python bug #16308