I moved all the PWM generating functions into a new file named pwm_library.py