Updated photocell.py