updated step to call Python script via popen3