InvalidHandshake between Arduino WebSocket Server and Python Client

The error message above is not from the Python code above!

The Python code is not a Websocket client.

What else did you change before posting?