Update MPT_function.py