fixed compilation bugs in Sim_Comp_pwMsMa_dist.py