solved i used call method to solve this problem example: subprocess.call(["fast-gpio", "pwm", "19", "200", "10"])