A bit of cleanup, and call subprocess.Popen with shell=True.