new python script to test pwm