Set UVmap to active_render

I got a Mesh with two UVmaps and need to set one to active and the other to active_render. The tooltip for active_render is MeshTextureFaceLayer.active_render but I don’t seem to figure out how to use it.

This is how I managed to set a UVmap to active

bpy.context.object.data.uv_textures.active = bpy.context.object.data.uv_textures["MyUV"]

weird, I searched two days how to handle this and shortly after posting here I found the solution. Maybe helpful for someone else. I guess I have to edit the UV-script in the cookbook.

bpy.context.object.data.uv_textures["MyUV01"].active = True
bpy.context.object.data.uv_textures["MyUV02"].active = False

bpy.context.object.data.uv_textures["MyUV01"].active_render = False
bpy.context.object.data.uv_textures["MyUV02"].active_render = True