Update mc.py

fixed a few indexing problems