os.system changed to subprocess.call