cam.py: clean-ups