Cluster, Null, Constrain

So I was looking over the XSI Base forums and happened upon a post of someone trying to create / modify a script. The script needed to create a cluster at each selected point on a mesh, then constrain a null to each created cluster. I didn’t know how to do this myself so I decided to take a stab at it and came up with the following script: