Why doesn't my script work on all of the vertices of a mesh?
Oh nevermind. All I had to do was remove the line: if luv.select: so that the script doesn't verify if the uv layer is selected for all vertices.