Use subprocess.Popen instead of commands