script that detects motion from webcam