Adding the diary.py script.