in reply to Distance between points in a PDB file
I'm missing a question or problem here. If your script doesn't work you could tell us what doesn't work. If it works, what do you want to make better?