updated wrapper.py to go through the flow of processing train_X_Y