modified .cc and .py for HI MC,v3.0