No, for different bodies there is nu built in function (as of Pymunk 5.7).
(It would be possible to set mass directly on the shapes, then attach all of them to a single body and read it out from the body. But if you actually need several different bodies I think manual calculation is much easier)
CLICK HERE to find out more related problems solutions.