python mc