Hi Marjan,
You are not supplying anything to your rs.MeshVertices function. It requires mesh guid.
Take a look this topic too, its intention was to comment on some common things RhinoPython to ghpython users do.
sphereFromPts.gh (7.8 KB)
Please attach your .gh files next time. Thank you.