Run python script for dynamic home point

Does this post help you?

By the way, can you educate us your connection method? Am I correct your python code run side by side with the GCS (MP) and not connect to Ardupilot FC with a companion computer?

A photo or picture will be ideal.