@ferdinand
Thank you for the hint and the superfast response! I was not aware that these symbols dissolve into these numbers, which of course makes it much easier to work with them now. I was able to solve it with CallUVCommand:
settings = c4d.BaseContainer()
settings[c4d.RELAXUV_KEEP_BORDER] = False
settings[c4d.RELAXUV_KEEP_NEIGHBORS] = False
settings[c4d.RELAXUV_KEEP_POINTSEL] = False
settings[c4d.RELAXUV_CUT_EDGESEL] = True
settings[c4d.RELAXUV_EDGESEL_POINTER] = edge_sellection
settings[c4d.RELAXUV_MAX_ITERATIONS] = 1
settings[c4d.RELAXUV_MODE] = c4d.RELAXUV_MODE_ABF
ret = c4d.modules.bodypaint.CallUVCommand(handle.GetPoints(),
handle.GetPointCount(),
handle.GetPolys(),
handle.GetPolyCount(),
uvw,
handle.GetPolySel(),
handle.GetUVPointSel(),
obj,
handle.GetMode(),
c4d.UVCOMMAND_RELAX,
settings)