Running Olympe/python scripts much faster?

I am trying to finish my final year project and part of that is using Sphinx to simulate and run scripts on a drone.

I have some basics scripts that move the drone, such as the below:

drone = olympe.Drone(“”)
moveBy(5, 0, 0, 0)
>> FlyingStateChanged(state=“hovering”, _timeout=5)

I have a Flask sever linked to my phone, and I am using the accelerator to track movements. The drone responds to my arm’s movements and runs a script to move it in the same direction as my arm.

The flask server and mobile app do their jobs instantly, but the script in Olympe takes a solid 3 seconds inbetween each movement command. This is far, far too slow. Ideally I would need the drone to respond to movement scripts in a second or less. A lot of this seems to be random, irrelevant stuff being spammed in the console - is there a flag to disable that?

How can I make Olympe run the scripts much faster?