moved from os.system to subprocess.call