I have the following code:
import subprocess import os import gc p = subprocess.Popen([\'python\', \'def_train_models.py\']) while(True): poll = p.poll()