Update webcam.py

refactored for pep8/readability