mc.py initial version