pep8

turn lights on 1 hour before sunrise and for 30m after sunrise
turn on/off lights based on cloud cover and visiblity levels
pep8