autobrightness.py
rewrote some code
rewrote some code