It looks like you're new here. If you want to get involved, click one of these buttons!
error from callback <bound method WebSocket._on_data of <kiteconnect.WebSocket object at 0x7ff3ec0bf
This is weird, websocket has nothing to do with modifying order.
Can you print kiteException.message and check for error?
Can you try python 2.7 ?