Added python code to trigger the arduino event.