I have a python script where I am working with a websocket.WebSocketApp and the Kraken API like this:
websocket.WebSocketApp
ws = websocket.WebSocketApp("wss://ws.krak