Raspberry Pi python Lightweight Motion Detection