Caravan Python Code

I want to start the caravan proccess via python code and give notification or do something when the road is finished.

OR

I want to start a caravan via script (either auto or with walk commands) at the end of the script i want to open a python file or give a notification

The proccess should not include selling and buying goods. Only it needs to walk and do something or give notification when it’s on other vendor.