making beaglePWM.py testable again