Raspberry Pi script to record pictures when PIR module motion is detected