Use subprocess.Popen instead of check_output for compatibility reasons