Finding the distance between Events coordinates and the station

hello everyone . i got 631 events records data from IRIS. using obspy. i am struggling in writing a code to find the Distance b/w the events lat/long and the station . also i need to write a custom format CSV file . kindly check the below link i have mentioned my queries in the comments .Thanks

I think you’ll need to work a bit on how you present your problem if you expect people to spend some of their time to try to help you. E.g use a meaningful title, improve how your code is presented, work on your wording so it is clear what the problem is.