Adding GetEndPoints, using it with reparent.py.