Automatic new waypoints

hello

i made a python script that every 2 seconds output new coordinate.

i want that the drone will follow those new ones while in air.

how should i approach it in a simple goto script.

look at the script examples include with missionplanner