Autobrightness script using simplecv