Add lcm, hcf, and some mf.py changes