Update pre_CMGfunc_trainNetworks.py