Create pwm_test.py

trying to bring it to work, many fixes needed