It was a python 3 issue. I changed python to python3 in the pwm_fan_control.py