Multiple Spot Coordinates

I was hoping we could figure it out as a general Python question.

Here’s the code:

Inputs p, o and n would need to have a list of points (instead of a single point) as inputs.

Sorry it would take me a while to replicate this in a new project and Dynamo script!