Update timelapse.py

Added some inline documentation.