Update MainProgram.py