Moved from os.system to subprocess.call