Here's a first working version. The script is built to do the Z axis, but I've given you the alternate lines (remmed out) to form the other 5 possible scripts. To use, just select a body part and hit the script. It paints the vertex weights on the body. I think you'll see how to make make finer color gradations, if that's desirable.....
My python page
My ShareCG freebies