updated Max_Interface.py