fixed some bugs in mmm.py and mmm.f90 calcs