Is there a better way to rotate the order of vertices of currently selected faces in edit mode?
The UI isn't updating because the script does not call

bmesh.update_edit_mesh(mesh)


(I got this from how to use BMesh to add verts, faces, and edges to existing geometry )