added cenmass function to distmodule.py