Trying to fix subprocess.Popen issue on OSX