Improve python websocket handling a bit.
Improve python websocket handling a bit.

Convert the data parameter to a string if the op was WEBSOCKET_OP_TEXT
or convert to bytes if op was WEBSOCKET_OP_BINARY so the callee does
not have to do this anymore.

jorisvink/kore,jorisvink/kore