Python script for time-lapse photography using the Raspberry Pi camera