Hmm... not sure how to fix that. That's nothing wrong with my scripts -- it's definitely an issue with how Maya handles mesh smoothing and UVs. You might check out this page for a possible solution (I haven't tried it myself yet, but I've seen lots of references to it on CG-Talk):
https://www.drone.org/tutorials/uv_smoothing.html