Create MC_functions.py