Change uvs on a mesh

Hi everyone!
I've got a problem that I'm trying to tackle in the API but wouldn't work out.
I'm trying to set the uvs of a mesh to new values, the computation for that is fairly easy. The problem with my plugin is: It seems to set my UVs alright but the changes don't show up in the uv editor.
Before I try some more time getting this done in the API, could it be that this is an extremely easy task in mel?
And if so, how would you do it?