How to pick data and apply python conditions on websocket Live Data Feed