Replacing sh with subprocess.Popen in launcher