use subprocess.call instead of implement it