Change os.system to subprocess

I replace os.system with subprocess.call