Narc's sleep log in Python/Flask format