developed better model for photoresistors. Added error reporting to python test. Introduce a bug somewhere